Method | Description | |
---|---|---|
GameRandom ( ) : System |
Initializes a new GameRandom.
|
|
Next ( ) : int |
Returns Int32 between Int32 min - and max value.
|
|
Next ( int max ) : int |
Returns Int32 between 0 and max.
|
|
Next ( int min, int max ) : int |
Returns Int32 between min and max.
|
|
NextBoolean ( ) : bool |
Returns true or false.
|
|
NextBoolean ( double probability ) : bool |
Returns true or false based on the probability.
|
|
NextDouble ( ) : double |
Returns a double between 0 and 1.
|
|
NextFloat ( ) : float |
Returns a float between 0 and 1.
|
public Next ( int min, int max ) : int | ||
min | int | The Minimum. |
max | int | The Maximum. |
return | int |
public NextBoolean ( double probability ) : bool | ||
probability | double | The Probability. |
return | bool |