code: static int getRandomInt(int min, int max, Random random) {
  		// Use random.nextInt as it guarantees a uniform distribution
  		int maxForRandom = max - min + 1;
  		return random.nextInt(maxForRandom) + min;
  	}
docs: Generates a random number within the given bounds.
  @param min The minimum number (inclusive).
  @param max The maximum number (inclusive).
  @param random The object used as the randomizer.
  @return A random number in the given range.