Property | Type | Description |
---|
Method | Description | |
---|---|---|
GetDouble ( double minValue, double maxValue ) : double |
Returns a random number within a specified range.
|
|
GetInt ( int maxValue ) : int |
Returns a nonnegative random number less than the specified maximum.
|
|
GetInt ( int minValue, int maxValue ) : int |
Returns a random number within a specified range.
|
|
GetRandomFloat ( float minValue, float maxValue ) : float |
Returns a random number within a specified range.
|
public static GetDouble ( double minValue, double maxValue ) : double | ||
minValue | double | minValue is the inclusive lower bound of the random number returned. |
maxValue | double | maxValue is the exclusive upper bound of the random number returned. |
return | double |
public static GetInt ( int maxValue ) : int | ||
maxValue | int | The exclusive upper bound of the random number to be generated. maxValue must be greater than or equal to zero. |
return | int |
public static GetInt ( int minValue, int maxValue ) : int | ||
minValue | int | minValue is the inclusive lower bound of the random number returned. |
maxValue | int | maxValue is the exclusive upper bound of the random number returned. |
return | int |
public static GetRandomFloat ( float minValue, float maxValue ) : float | ||
minValue | float | minValue is the inclusive lower bound of the random number returned. |
maxValue | float | maxValue is the exclusive upper bound of the random number returned. |
return | float |