Possible Duplicate:
http://stackoverflow.com/questions/363681/java-generating-random-number-in-a-range http://stackoverflow.com/questions/363681/java-generating-random-number-in-a-range
I would like to get a random value between 1 to 50 in Java.
How may I do that with the help of Math.random();?
How do I bound the values that Math.random() returns?