[−][src]Function genevo::random::random_probability
pub fn random_probability<R>(rng: &mut R) -> f64 where
R: Rng + Sized,
Generates a random probability between 0 and 1 using the given Prng
.
The generated probabilities are in the open range (0,1), excluding 0 and excluding 1.