random_number

Function random_at_most

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

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