Generates a random integer between a minimum and maximum value (inclusive).
static int generateRandomNumber(int min, int max) { return min + Random().nextInt(max - min + 1); }