0

Program to simulate rolling two dice about 10,000 times and compute and print out the percentage of rolls that come 2,3..11,12

when playing games to roll two dice, it is nice to know the odds if each roll. for instance the odds of rolling 12 are about 3% and 7 is 17%

8th Sep 2017, 4:57 PM
Abhinav Anand
Abhinav Anand - avatar
1 Réponse
+ 1
I can only use Javascript to get the output from 10 million simulation test https://code.sololearn.com/Wm7gN9Ok2XLU/?ref=app Validate the results with following article https://www.thespruce.com/dice-probabilities-rolling-2-sixsided-dice-411406
9th Sep 2017, 1:45 AM
Calviղ
Calviղ - avatar