rand() range code example Example: random range python from random import randrange print(randrange(10))