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