Function random_number::random_inclusively_cmp [−][src]
pub fn random_inclusively_cmp<X: SampleUniform + Ord + Clone, B: SampleBorrow<X>>(
a: B,
b: B
) -> X
Generate a random value in the range [a, b] or [b, a] with a new lazily-initialized thread-local random number generator.
Panics if a and b can not be compared.