fastrand

Function usize

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

Generates a random usize in the given range.

Panics if the range is empty.