Skip to content

pcg32

pcg32(seed?): Pcg32

Defined in: src/engine/pcg32.ts:123

PCG32 — a 64-bit LCG whose output is permuted before it is returned.

Statistically excellent for its size, and it supports multiple independent streams from one seed.

Seed

Pcg32

const source = pcg32(42);
source.nextUint32(); // 2722782280