Return a deterministic () => number (in [0, 1)) seeded by seed.
Calling the returned function advances internal state, so a single
PRNG instance produces a deterministic stream of pseudo-random
floats. Construct a fresh PRNG per test (in beforeEach) to avoid
cross-test coupling.
Parameters
seed: number
32-bit unsigned integer; zero produces a valid stream.
Returns ()=>number
Function that returns a deterministic float in [0, 1).
Return a deterministic
() => number(in [0, 1)) seeded byseed.Calling the returned function advances internal state, so a single PRNG instance produces a deterministic stream of pseudo-random floats. Construct a fresh PRNG per test (in
beforeEach) to avoid cross-test coupling.