when you run milliondicestats pythe output will look like thismillion dice roll statistics simulator by al sweigart al@inventwithpython com enter how many six-sided dice you want to roll simulating , , rolls of dice done done total rolls percentage rolls rolls rolls rolls rolls rolls rolls rolls rolls rolls rolls how it works we simulate the roll of single six-sided die by calling random randint( on line this returns random number between and which gets added to the running total for however many dice are rolled together the random randint(function has uniform distributionmeaning each number is just as likely as any other to be returned the program stores the results of this roll with the results dictionary the keys to this dictionary are each possible dice roll totaland the values are how many times this total has been encountered to get the frequency percentagewe divide the number of times total has been encountered by , , (the number of dice rolls in this simulationand multiply it by (to get percentage between and instead of and by doing some algebrawe can figure out that this is the same as dividing the number of encounters by , which we do on line """million dice roll statistics simulator by al sweigart al@inventwithpython com simulation of one million dice rolls view this code at tagstinybeginnermathsimulation"" import randomtime print('''million dice roll statistics simulator by al sweigart al@inventwithpython com million dice roll statistics simulator