pub fn rand_i32<R: RangeBounds<i32>>(range: R) -> i32
Expand description
Generates a random number between the beginning and end of the range.
If the range is unbounded, min and/or max values are bound to
[i32::MIN
] and [i32::MAX
] respectively.
The range must contain at least one element, or this will panic. Same if the start bound is excluded.