Method | Description | |
---|---|---|
C5Random ( ) : System |
Create a random number generator seed by system time.
|
|
C5Random ( long seed ) : System |
Create a random number generator with a given seed
|
|
C5Random ( uint Q ) : System |
Create a random number generator with a specified internal start state.
|
|
Next ( ) : int |
Get a new random System.Int32 value
|
|
Next ( int max ) : int |
Get a random non-negative integer less than a given upper bound
|
|
Next ( int min, int max ) : int |
Get a random integer between two given bounds
|
|
NextBytes ( byte buffer ) : void |
Fill a array of byte with random bytes
|
|
NextDouble ( ) : double |
Get a new random System.Double value
|
Method | Description | |
---|---|---|
Sample ( ) : double |
Get a new random System.Double value
|
Method | Description | |
---|---|---|
Cmwc ( ) : uint |
public C5Random ( uint Q ) : System | ||
Q | uint | The start state. Must be a collection of random bits given by an array of exactly 16 uints. |
return | System |
public Next ( int min, int max ) : int | ||
min | int | The lower bound (inclusive) |
max | int | The upper bound (exclusive) |
return | int |
public NextBytes ( byte buffer ) : void | ||
buffer | byte | The array to fill |
return | void |