Take a look at the Math.random() function or the Random class.
Type: Posts; User: KevinWorkman
Take a look at the Math.random() function or the Random class.
That's exactly what I would expect it to give you. 5+6+7+8+9+10 = 45. Why would this code give you a random number of any kind?