demo_ref_random_randrange.py:
import random print(random.randrange(3, 9)) #returns a number between 3 (included) and 9 (not included)
➜ begtut>python demo_random_randrange.py