Skip to main content

roll_percent

Function roll_percent 

Source
fn roll_percent() -> u8
Expand description

Draws a pseudo-random number in 0..100.

Uses a freshly seeded RandomState hasher instead of a rand crate: each RandomState::new() carries new per-call keys, so finish() yields a cheap, statistically casual value. Not cryptographic and not a deterministic sequence — good enough for percentage sampling.