| RandomHelperNextByte Method |
Gets a random byte value.
Namespace: DigitalRune.Mathematics.StatisticsAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static int NextByte(
this Random random
)
<ExtensionAttribute>
Public Shared Function NextByte (
random As Random
) As Integer
public:
[ExtensionAttribute]
static int NextByte(
Random^ random
)
[<ExtensionAttribute>]
static member NextByte :
random : Random -> int
Parameters
- random
- Type: SystemRandom
The random number generator. If this parameter is , the global random
number generator (see Random) is used.
Return Value
Type:
Int32A random byte value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Random. 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