backgammon/dice.py

6 lines
80 B
Python

import random
class Dice:
def roll():
return random.randrange(1,7)