Unsecure Random Number Noise, used for fast seeded values
__construct |
( |
|
$seed = -1 | ) |
|
- Parameters
-
int | $seed | Integer to be used as seed. |
Returns a random boolean
- Returns
- bool
Returns a float between 0.0 and 1.0 (inclusive)
- Returns
- float
Returns an 31-bit integer (not signed)
- Returns
- int
nextRange |
( |
|
$start = 0 , |
|
|
|
$end = 0x7fffffff |
|
) |
| |
Returns a random integer between $start and $end
- Parameters
-
int | $start | default 0 |
int | $end | default 0x7fffffff |
- Returns
- int
Returns a float between -1.0 and 1.0 (inclusive)
- Returns
- float
Returns a 32-bit integer (signed)
- Returns
- int
- Parameters
-
int | $seed | Integer to be used as seed. |
The documentation for this class was generated from the following file:
- /Users/Kids/Desktop/Doxygen/pocketmine/utils/Random.php