We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5eef668 commit fca113cCopy full SHA for fca113c
app.js
@@ -12,7 +12,7 @@ rollDiceButton.addEventListener("click", () => {
12
diceRolls = []; //reset dice rolls to empty list
13
for (let i = 0; i < numDice; i++) {
14
//repeat for each dice
15
- const roll = Math.floor(Math.random() * numSides) + 1; //get random dice number
+ const roll = Math.floor(Math.random() * numSides) + 1; //get random dice number based on number of sides
16
diceRolls.push(roll); //add roll to list of dice rolls
17
total += roll; //add rolled dice to total
18
}
0 commit comments