Random r = new Random(); int randomInt = r.nextInt(100) + 1;
public int getRandomNumber(int min, int max) { return (int) ((Math.random() * (max - min)) + min); }