mulberry32
mulberry32(
seed?):Mulberry32
Defined in: src/engine/mulberry32.ts:41
mulberry32 — 32 bits of state, a dozen lines of arithmetic.
The smallest engine here. Its 2^32 period is short enough to matter in a long run, so prefer it only where the state size is the constraint.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Example
Section titled “Example”const source = mulberry32(42);source.nextUint32(); // 2744357186