fastrand

Function i32

Source
pub fn i32(range: impl RangeBounds<i32>) -> i32
Available on crate feature std only.
Expand description

Generates a random i32 in the given range.

Panics if the range is empty.