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..???
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.