Function af_core::random::chance [−][src]
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
.