random_number

Function random_ranged

source
pub fn random_ranged<X: SampleUniform + Bounded, R: RangeBounds<X>>(
    range: R,
) -> X
Expand description

Generate a random value in a specific range with a new lazily-initialized thread-local random number generator.

Panics if the start bound is exclusive.