sample method

int sample(
  1. Rng rng
)

Uniform integer in [lo, hi].

Implementation

int sample(Rng rng) => rng.nextIntIn(lo, hi);