Function random_number::random[][src]

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

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