Click or drag to resize

DoubleExtensionsGetRandom Method (Double)

Returns a random number less than the double value and greater than or equal to 0

Namespace:  TestHelperExtensions
Assembly:  CBI.TestHelperExtensions (in CBI.TestHelperExtensions.dll) Version: 2.1.0.1
Syntax
public static double GetRandom(
	this double maxValue
)

Parameters

maxValue
Type: SystemDouble
The non-inclusive maximum value for the random number

Return Value

Type: Double
A random double less than the maxValue and greater than or equal to zero.

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