random_number

Function random_with_rng

source
pub fn random_with_rng<X: SampleUniform + Bounded, T: Rng>(rng: &mut T) -> X
Expand description

Generate a random value in the range of the output type with an existing random number generator.