backgammon/dice.py

6 lines
80 B
Python
Raw Normal View History

2018-02-05 21:31:34 +00:00
import random
class Dice:
def roll():
return random.randrange(1,7)