code: public static int randomIntBetween(int min, int max) {
      Random rand = new Random();
      return rand.nextInt((max - min) + 1) + min;
    }
docs: Returns an integer between interval
  @param min Minimum value
  @param max Maximum value
  @return int number