Advertisement
Guest User

dice code swag

a guest
Nov 26th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import random
  2.  
  3. x = ("dice1")
  4. y = ("dice2")
  5.  
  6. def dice():
  7. while x != y:
  8. x = random.randint(0, 6)
  9. y = random.randint(0, 6)
  10. print(x)
  11. print(y)
  12.  
  13. print(x)
  14. print(y)
  15. print("Welcome to the Dice Game your goal is to get both dice equal to the same number by rolling the dice")
  16. print("Rolling Dice Now")
  17. dice()
  18. print("Your Dice Are Now of Equal Value!")
  19. print(x)
  20. print(y)
  21. quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement