Skip to content

Instantly share code, notes, and snippets.

@SANTOSHSHARMA11
Created December 15, 2019 14:55
Show Gist options
  • Save SANTOSHSHARMA11/f68aee4dd78bfbdc4187967e9b4ca406 to your computer and use it in GitHub Desktop.
Save SANTOSHSHARMA11/f68aee4dd78bfbdc4187967e9b4ca406 to your computer and use it in GitHub Desktop.
class dice:
def rol(self, l):
print(random.choice(l))
p = ((1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6),
(2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (2, 6),
(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6),
(4, 1), (4, 2), (4, 3), (4, 4), (4, 5), (4, 6),
(5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (5, 6),
(6, 1), (6, 2), (6, 3), (6, 4), (6, 5), (6, 6))
d = dice()
d.rol(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment