-
Notifications
You must be signed in to change notification settings - Fork 24
Random Library
Rohan Singh edited this page Feb 6, 2015
·
1 revision
Random(): object
Creates a new random number generator instance seeded with the current time.
Random(seed: number): object
Creates a new random number generator instance with the given seed.
next(): number
Returns a random integer from 0 to 2,147,483,647.
next(max: number): number
Returns a random integer from 0 to max
-1.
next(min: number, max: number): number
Returns a random integer from min
to max
-1.
nextDouble(): number
Returns a random number from 0 to 1.