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
Using the Random class is the way to go as suggested in the accepted answer, but here is a less straight-forward correct way of doing it if you didn't want to create a new Random object :
min + (int) (Math.random() * (max - min + 1));