With reference to the question " TELL US THE LOGIC OF DICEROLLER"???
1 Answer(s)      5 years and 5 months ago
Posted in : Java Beginners

Tell us the logic of diceroller 1 Answer(s) 18 minutes and 38 seconds ago Posted in : Java Beginners

As told ""The (Math.random()*6)+1 returns the random number between 1 and 6 only. so it display 3 for the first dice and 2 for another one.""""

Why cant it be 5 & 4..???


View Answers

June 15, 2011 at 12:29 PM

The values have came randomly. Random means 'any number display at a time'.If you will refresh the browser, the values will get changed every time.

Related Tutorials/Questions & Answers: