 | DoubleExtensionsGetRandom Method (Double, Double) |
Returns a random number greater than or equal to the specified minValue and less than the maxValue
Namespace:
TestHelperExtensions
Assembly:
CBI.TestHelperExtensions (in CBI.TestHelperExtensions.dll) Version: 2.1.0.1
Syntaxpublic static double GetRandom(
this double maxValue,
double minValue
)
<ExtensionAttribute>
Public Shared Function GetRandom (
maxValue As Double,
minValue As Double
) As Double
public:
[ExtensionAttribute]
static double GetRandom(
double maxValue,
double minValue
)
[<ExtensionAttribute>]
static member GetRandom :
maxValue : float *
minValue : float -> float
Parameters
- maxValue
- Type: SystemDouble
The non-inclusive maximum value for the random number - minValue
- Type: SystemDouble
The inclusive minimum value for the random number
Return Value
Type:
DoubleA random double in the specified range
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also