Optionalseed: numberReturns the current head state word (does not return the originally-supplied seed).
Re-seeds the generator and resets all internal state from seed.
Restores the generator to the state right after construction (replays the same sequence).
Returns a uniform random integer in [0, 0xFFFFFFFF].
Returns a single-precision float in [0, 1], or in [min, max] when min is provided.
Optionalmin: numberlower bound (inclusive)
Optionalmax: numberupper bound (inclusive); defaults to 1 when min is provided
Returns a double in [0, 1) with full 53-bit mantissa resolution, or in [min, max] when
min is provided.
Optionalmin: numberlower bound (inclusive)
Optionalmax: numberupper bound (inclusive); defaults to 1 when min is provided
Seeded pseudo-random number generator using the Xorwow variant of Marsaglia's xorshift family.
Backed by a Uint32Array of 6 state words (4 xorshift lanes + a Weyl counter + last output), so the instance is itself the state buffer.
See
https://en.wikipedia.org/wiki/Xorshift#xorwow