Class: Random

Splat.math. Random

new Random(seedopt)

A seedable pseudo-random number generator. Currently a Mersenne Twister PRNG.
Parameters:
Name Type Attributes Description
seed number <optional>
The seed for the PRNG.
Source:
See:
Example
var rand = new Splat.math.Random(123);
var val = rand.random();