random_number

Function random_fill_inclusively_with_rng

source
pub fn random_fill_inclusively_with_rng<X: SampleUniform, B1: SampleBorrow<X>, B2: SampleBorrow<X>, T: Rng>(
    out: &mut [X],
    min: B1,
    max_inclusive: B2,
    rng: &mut T,
)
Expand description

Generate random values in the range [min, max_inclusive] with an existing random number generator.

Panics if min > max_inclusive.