random_number

Function random_at_most_exclusively

source
pub fn random_at_most_exclusively<X: SampleUniform + Bounded, B: SampleBorrow<X>>(
    max_exclusive: B,
) -> X
Expand description

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

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