random_number

Function random_inclusively_cmp_with_rng

source
pub fn random_inclusively_cmp_with_rng<X: SampleUniform + Ord + Clone, B: SampleBorrow<X>, T: Rng>(
    a: B,
    b: B,
    rng: &mut T,
) -> X
Expand description

Generate a random value in the range [a, b] or [b, a] with an existing random number generator.