Returns a random number within a specified range.
Namespace: Bespoke.CommonAssembly: Bespoke.Common (in Bespoke.Common.dll) Version: 5.0.0.0 (5.0.0.0)
Syntax
Parameters
- minValue
- Type: System Double
[Missing <param name="minValue"/> documentation for "M:Bespoke.Common.RandomHelper.NextDouble(System.Double,System.Double)"]
- maxValue
- Type: System Double
[Missing <param name="maxValue"/> documentation for "M:Bespoke.Common.RandomHelper.NextDouble(System.Double,System.Double)"]
Return Value
A double-precision floating point numner greater than or equal to minValue and less than maxValue; that is, the range of return values includes minValue but not maxValue. If minValue equals maxValue, minValue is returned.Exceptions
Exception | Condition |
---|---|
System ArgumentOutOfRangeException | minValue is greater than maxValue. |
See Also