What method returns a random int between a min and max? Or does no such method exist?
What I\'m looking for is something like this:
NAMEOFMETHOD (mi
Construct a Random object at application startup:
Random random = new Random();
Then use Random.nextInt(int):
int randomNumber = random.nextInt(max + 1 - min) + min;
Note that the both lower and upper limits are inclusive.