random_number

Function random_at_least_with_rng

source
pub fn random_at_least_with_rng<X: SampleUniform + Bounded, B: SampleBorrow<X>, T: Rng>(
    min: B,
    rng: &mut T,
) -> X
Expand description

Generate a random value in the range [min, X::max_value()] with an existing random number generator.