random.randint documentation code example Example: random.randint import random print(random.randint(3, 9))