How do i generate a random integer between min and max in java?
- by David
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 (min, max)
(where min and max are ints)
that returns soemthing like this:
8
(randomly)
if such a method does exist could you please link to the relevant documentation with your answer. thanks.