rand int from range code example Example: python random integer in range import random print(random.randint(0,9))