pub fn random_at_most_with_rng<X: SampleUniform + Bounded, B: SampleBorrow<X>, T: Rng>(
max_inclusive: B,
rng: &mut T,
) -> X
Expand description
Generate a random value in the range [X::min_value()
, max_inclusive
] with an existing random number generator.