Advertisement
Nixsy

craps

Dec 18th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var die1,
  2. die2,
  3. workSum;
  4.  
  5. die1 = Math.floor(1 + Math.random() * 6);
  6. die2 = Math.floor(1 + Math.random() * 6);
  7.  
  8. workSum = die1 + die2;
  9.  
  10. var string = (a + ' Landed a ' + die1 + ' and ' + die2 + ' totaling ' + workSum);
  11.  
  12. chat(a + " Rolls the dice");
  13. setTimeout(function () {
  14.     chat(string)
  15. }, 4000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement