Function randomize::percent_chance
[−]
[src]
pub fn percent_chance(chance: f32) -> bool
Returns true
a percentage of the time (eg: 0.3 = 30%) from the global RNG.