Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Set the number of dice rolled
- var diceNumber = 10;
- // Set the current number of dice rolled to zero
- var numberOfDiceRolled = 0;
- while (numberOfDiceRolled < diceNumber) {
- //roll the dice here and add 1 to the number of dice rolled
- numberOfDiceRolled++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement