Function random_range
fn random_range<T, R>(range: R) -> T
where
T: distr::uniform::SampleUniform,
R: distr::uniform::SampleRange<T>
Generate a random value in the given range using the thread-local random number generator.
This function is shorthand for
[rng()].random_range(range).
Example
let y: f32 = random_range;
println!;
let words: = "Mary had a little lamb".split.collect;
println!;
Note that the first example can also be achieved (without collect'ing
to a Vec) using seq::IteratorRandom::choose.