random_number

Function random_exclusively

source
pub fn random_exclusively<X: SampleUniform, B1: SampleBorrow<X>, B2: SampleBorrow<X>>(
    min: B1,
    max_exclusive: B2,
) -> X
Expand description

Generate a random value in the range [min, max_exclusive) with a new lazily-initialized thread-local random number generator.

Panics if min >= max_exclusive.