Skip to main content

uniform_int

Function uniform_int 

Source
fn uniform_int(rng: &mut impl Rng, min: i32, max: i32) -> i32
Expand description

Vanilla Mth.nextInt(random, min, max) is inclusive and clamps to min when min >= max.