Instantiates a new Mersenne Twister.
Optional
seed: numberThe initial seed value, if not provided the current timestamp will be used.
A pseudo-normal distribution using the Box-Muller transform.
The normal distribution mean
The normal distribution standard deviation
Initializes the state vector by using an array key[] of unsigned 32-bit integers of the specified length. If length is smaller than 624, then each array of 32-bit integers gives distinct initial state vector. This is useful if you want a larger seed space than 32-bit word.
The seed vector.
Static
normalA factory method for generating random normal rolls
Static
randomA factory method for generating random uniform rolls
A standalone, pure JavaScript implementation of the Mersenne Twister pseudo random number generator.