pub fn random_exclusively_with_rng<X: SampleUniform, B1: SampleBorrow<X>, B2: SampleBorrow<X>, T: Rng>(
min: B1,
max_exclusive: B2,
rng: &mut T,
) -> X
Expand description
Generate a random value in the range [min
, max_exclusive
) with an existing random number generator.
Panics if min >= max_exclusive
.