random_number

Function random_fill_inclusively

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

Generate random values in the range [min, max_inclusive] with a new lazily-initialized thread-local random number generator.

Panics if min > max_inclusive.