Skip to content

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.

Seed

Mulberry32

const source = mulberry32(42);
source.nextUint32(); // 2744357186