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

Generate a random value in the range [X::min_value(), max_exclusive) with an existing random number generator.

Panics if X::min_value() == max_exclusive.