Метод | Описание | |
---|---|---|
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 ( byte buffer ) : void |
Fills the elements of a specified array of bytes with random numbers.
|
|
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.
|
Метод | Описание | |
---|---|---|
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.
|
public Next ( int maxValue ) : int | ||
maxValue | int | The exclusive upper bound of the random number to be generated. |
Результат | 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. |
Результат | int |
public NextBytes ( byte buffer ) : void | ||
buffer | byte | An array of bytes to contain random numbers. |
Результат | void |
public NextLong ( long maxValue ) : long | ||
maxValue | long | The exclusive upper bound of the random number to be generated. |
Результат | 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. |
Результат | long |