Random
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Methods
Return Type: string
Return Type: boolean
Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator’s sequence.
Return Type: double
Returns the next pseudorandom double. Its range is [min, max]
Return Type: double
Parameter | Type | Description |
---|---|---|
Parameter min | Type double | Description No Description Provided |
Parameter max | Type double | Description No Description Provided |
Returns the next pseudorandom, uniformly distributed float value between 0.0f and 1.0f from this random number generator’s sequence.
Return Type: float
Returns the next pseudorandom float. Its range is [min, max]
Return Type: float
Parameter | Type | Description |
---|---|---|
Parameter min | Type float | Description No Description Provided |
Parameter max | Type float | Description No Description Provided |
Returns the next pseudorandom, uniformly distributed int value from this random number generator’s sequence.
Return Type: int
Returns the next pseudorandom, uniformly distributed int value between zero (inclusive) and bound (exclusive) from this random number generator’s sequence
Return Type: int
Parameter | Type | Description |
---|---|---|
Parameter bound | Type int | Description the upper bound (exclusive). Must be positive. |
Returns the next pseudorandom int. Its range is [min, max]
Return Type: int
Parameter | Type | Description |
---|---|---|
Parameter min | Type int | Description No Description Provided |
Parameter max | Type int | Description No Description Provided |