from random import randint class Die: def __init__(self, diemax: int): self.Max = diemax def roll(self): return randint(1, self.Max)