Skip to main content

chance

Function chance 

Source
pub fn chance(probability: f32) -> bool
Expand description

Returns true with the given probability (0.0 to 1.0).