random_number

Function random

source
pub fn random<X: SampleUniform + Bounded>() -> X
Expand description

Generate a random value in the range of the output type with a new lazily-initialized thread-local random number generator.