Skip to main content

roll_tier

Function roll_tier 

Source
pub fn roll_tier(rng: &mut dyn FnMut() -> f64, thresholds: &[f64]) -> usize
Expand description

Returns the index of the first cumulative threshold above the RNG draw.