// get a integer between min(inclusive) and max(exclusive); public int getRandomNumber(int min, int max) { return (int) ((Math.random() * (max - min)) + min); }