Function nannou::rand::random_range
[−]
[src]
pub fn random_range<T>(min: T, max: T) -> T where
T: PartialOrd + SampleRange,
A function for generating a random value within the given range.
The generated value may be within the range [min, max). That is, the result is inclusive of
min
, but will never be max
.
This calls rand::thread_rng().gen_range(min, max)
internally, in turn using the thread-local
default random number generator.