 | LongExtensionsGetRandom Method (Int64) |
Returns a random number greater than or equal to 0 and less than the integer
Namespace:
TestHelperExtensions
Assembly:
CBI.TestHelperExtensions (in CBI.TestHelperExtensions.dll) Version: 2.1.0.1
Syntaxpublic static long GetRandom(
this long maxValue
)
<ExtensionAttribute>
Public Shared Function GetRandom (
maxValue As Long
) As Long
public:
[ExtensionAttribute]
static long long GetRandom(
long long maxValue
)
[<ExtensionAttribute>]
static member GetRandom :
maxValue : int64 -> int64
Parameters
- maxValue
- Type: SystemInt64
The non-inclusive maximum integer value for the random number
Return Value
Type:
Int64A random integer
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Int64. 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