random_number

Function random_fill_inclusively_cmp

source
pub fn random_fill_inclusively_cmp<X: SampleUniform + Ord + Clone, B: SampleBorrow<X>>(
    out: &mut [X],
    a: B,
    b: B,
)
Expand description

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

Panics if a and b can not be compared.