Expand description
Randomness utilities.
Structs§
- Boundary
- A boundary-value sampler for
T: each fixed-width max ±1 and the half-range midpoint ±1.Boundary::<T>::new().sample(rng)returns one. - Probe
- A boundary-biased distribution: ~1/8 of draws are a boundary value, the rest a
“typical” log-normal magnitude. Generic over the numeric output type so a draw
site reads
let v: i64 = Probe.sample(rng)and gets type-appropriate boundaries.i64/f64draws carry a random sign.