 | ShortExtensionsGetRandom Method (Int16, Int16) |
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 short GetRandom(
this short maxValue,
short minValue
)
<ExtensionAttribute>
Public Shared Function GetRandom (
maxValue As Short,
minValue As Short
) As Short
public:
[ExtensionAttribute]
static short GetRandom(
short maxValue,
short minValue
)
[<ExtensionAttribute>]
static member GetRandom :
maxValue : int16 *
minValue : int16 -> int16
Parameters
- maxValue
- Type: SystemInt16
The non-inclusive maximum short value for the random number - minValue
- Type: SystemInt16
the inclusive minimum short value for the random number
Return Value
Type:
Int16A random short
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Int16. 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