Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners With reference to the question " TELL US THE LOGIC OF DICEROLLER"???

Have Programming Question? Ask it here!
 
 
 


Manasa
With reference to the question " TELL US THE LOGIC OF DICEROLLER"???
1 Answer(s)      3 years and 3 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..???


Advertisement
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:
Advertisements
 

 

 

DMCA.com