Random
From Crumbled World Wiki
Constructor
| function | description |
|---|---|
| Random(number seed) | |
| Random() |
Functions
| return | function | description |
|---|---|---|
| setSeed(int seed) | changes the seed. One seed will give the same output between different computers. | |
| int | range(int low, int high) | Returns a random number between low and high, [low,high]. |
| int | rand() | Returns a random number between 0, 2^32 |
| double | randFloat() | Returns a random number between [0.0, 1.0] |