Rolling dice - randrange



examples/numbers/rolling_dice.py
import random

print( 1 + int( 6 * random.random() ))

print(random.randrange(1, 7))

# One of the following: 1, 2, 3, 4, 5, 6