Skip to main content

roll_range

Function roll_range 

Source
pub fn roll_range(rng: &mut dyn FnMut() -> f64, low: f64, high: f64) -> f64
Expand description

Draws uniformly from the closed interval [low, high], mirroring SimC’s rng().range(a, b).