Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Set the number of dice rolled
  2. var diceNumber = 10;
  3.  
  4. // Set the current number of dice rolled to zero
  5. var numberOfDiceRolled = 0;
  6.  
  7. while (numberOfDiceRolled < diceNumber) {
  8.   //roll the dice here and add 1 to the number of dice rolled
  9.   numberOfDiceRolled++;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement