Skip to main content

proc_chance

Function proc_chance 

Source
pub fn proc_chance(rng: &mut dyn FnMut() -> f64, chance: f64) -> bool
Expand description

Rolls a proc with the given fractional probability.