Skip to main content

Module rng

Module rng 

Source
Expand description

Deterministic random number generation.

Implements PCG (Permuted Congruential Generator) with partitioned seeds for reproducible parallel execution.

§Reproducibility Guarantee

Given the same master seed, all random number sequences will be bitwise-identical across:

  • Different runs
  • Different platforms
  • Different thread counts (via partitioning)

Structs§

RngState
Saved RNG state for checkpointing.
SimRng
Deterministic, reproducible random number generator.

Enums§

RngRestoreError
Error restoring RNG state.