Class to generate random numbers with seed.
Kind: global class
Number
\*
Create the seeded random object.
Param | Type | Description |
---|---|---|
seed | Number |
Seed to start from. If not provided, will use 0. |
Number
Get next random value.
Kind: instance method of SeededRandom
Returns: Number
- A randomly generated value.
Param | Type | Description |
---|---|---|
min | Number |
Optional min value. If max is not provided, this will be used as max. |
max | Number |
Optional max value. |
\*
Pick a random value from array.
Kind: instance method of SeededRandom
Returns: \*
- Random value from options array.
Param | Type | Description |
---|---|---|
options | Array |
Options to pick random value from. |