fastrand

Function usize

source
pub fn usize(range: impl RangeBounds<usize>) -> usize
Expand description

Generates a random usize in the given range.

Panics if the range is empty.