Method | Description | |
---|---|---|
Next ( ) : int |
Returns a nonnegative random number.
|
|
Next ( int maxValue ) : int |
Returns a nonnegative random number less than the specified maximum.
|
|
Next ( int minValue, int maxValue ) : int |
Returns a random number within a specified range.
|
|
NextBytes ( int count ) : byte[] |
Returns a new count-sized byte array filled with random bytes.
|
|
NextBytes ( byte buffer ) : void |
Fills the elements of a specified array of bytes with random numbers.
|
|
NextBytes ( byte buffer, int offset, int count ) : void |
Fills the specified byte array with a cryptographically strong random sequence of values.
|
|
NextDouble ( ) : double |
Returns a random number between 0.0 and 1.0.
|
|
NextLong ( ) : long |
Returns a nonnegative random number.
|
|
NextLong ( long maxValue ) : long |
Returns a nonnegative random number less than the specified maximum.
|
|
NextLong ( long minValue, long maxValue ) : long |
Returns a random number within a specified range.
|
Method | Description | |
---|---|---|
CryptoRandom ( ) : System | ||
GetRandomUInt ( ) : uint |
Gets one random unsigned 32bit integer in a thread safe manner.
|
|
GetRandomULong ( ) : ulong |
Gets one random unsigned 64bit integer in a thread safe manner.
|
|
NextBytesInternal ( ArraySegment |
||
SanityCheck ( ) : void |
public Next ( int maxValue ) : int | ||
maxValue | int | The exclusive upper bound of the random number to be generated. |
return | int |
public Next ( int minValue, int maxValue ) : int | ||
minValue | int | The inclusive lower bound of the random number returned. |
maxValue | int | The exclusive upper bound of the random number returned. |
return | int |
public NextBytes ( int count ) : byte[] | ||
count | int | Array length. |
return | byte[] |
public NextBytes ( byte buffer ) : void | ||
buffer | byte | The array to fill with cryptographically strong random bytes. |
return | void |
public NextBytes ( byte buffer, int offset, int count ) : void | ||
buffer | byte | An array of bytes to contain random numbers. |
offset | int | |
count | int | Number of bytes to generate (must be lte buffer.Length). |
return | void |
public NextLong ( long maxValue ) : long | ||
maxValue | long | The exclusive upper bound of the random number to be generated. |
return | long |
public NextLong ( long minValue, long maxValue ) : long | ||
minValue | long | The inclusive lower bound of the random number returned. |
maxValue | long | The exclusive upper bound of the random number returned. |
return | long |