Returns true with the given probability (0-1).
Current PRNG state, as a 32-bit integer. Captured into snapshots
and restored via fromState for deterministic resume.
Returns an integer in [min, max] inclusive.
Returns a float in [0, 1).
Derives a child RNG for a specific turn (deterministic sub-stream).
StaticforA stream of its own for one draw: one person, one cause, one turn.
The state is the FNV-1a 32-bit hash of turn:agentId:cause XOR the
run's seed, so two runs with the same seed roll the same dice for the
same person whatever else happened in them, and no other person's
draw moves it.
StaticforThe one die a person keeps for a cause of death for their whole life,
in a run whose scenario keeps one death die for a life
(setup.mortalityDice: 'life'): keyed by the seed, the person and the
cause, and by no turn or year.
StaticfromConstruct a SeededRng positioned at a specific internal state. Different from the seed-based constructor: the returned RNG produces the same sequence as the source did AT THE MOMENT getState() was captured.
Mulberry32: fast 32-bit seeded PRNG. Deterministic: same seed always produces same sequence.