Expand description
Base formulas used elsewhere in the crate.
Constants
- This is the suggested multiplier for a PCG with 64 bits of state.
Functions
- Generates an
f32
in the signed or unsigned unit range. - Generates an
f64
in the signed or unsigned unit range. - Advance a 32-bit LCG by
delta
steps inlog2(delta)
time. - Advance a 32-bit LCG’s state.
- Advance a 32-bit LCG by
delta
steps inlog2(delta)
time. - Advance a 32-bit LCG’s state.
- Advance a 32-bit LCG by
delta
steps inlog2(delta)
time. - Advance a 32-bit LCG’s state.
- Returns
k
with probability2^(-k-1)
, a “binary exponential distribution”. - “Xor-shift high bits” then “randomized rotate”,
u64
down tou32
. - “Xor-shift low bits” then “randomized rotate”,
u128
tou64
.