random_number

Function random_fill_at_most_exclusively_with_rng

source
pub fn random_fill_at_most_exclusively_with_rng<X: SampleUniform + Bounded, B: SampleBorrow<X>, T: Rng>(
    out: &mut [X],
    max_exclusive: B,
    rng: &mut T,
)
Expand description

Generate random values in the range [X::min_value(), max_exclusive) with an existing random number generator.

Panics if X::min_value() == max_exclusive.