uniformInt method

int uniformInt(
  1. int min,
  2. int max
)

Generates a random integer between min (inclusive) and max (exclusive).

Implementation

int uniformInt(int min, int max) {
  return min + _random.nextInt(max - min);
}