[−][src]Function af_lib::prelude::af_core::random::chance
pub fn chance(probability: f64) -> bool
Returns true
with a given probability.
The probability
is the chance from 0.0
(never) to 1.0
(always) that
this function returns true
.