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