Dice Roller

Template: Click this link, and share with mrcodeswildride: new project


When the user rolls the dice, make a dictionary to store how many times each roll occurred, and increment the appropriate roll each time that number is rolled. Then loop through the roll values to show the roll frequencies.
For formatting a number to a fixed number of decimal places, use the toFixed method.
Last section Next section