getInt static method

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

Gets a random int between min and max.

Implementation

static int getInt(int min, int max) {
  return min + random.nextInt(max - min);
}