python save a random number from range code example Example: how to generate a random number python import random n = random.randint(0,22) print(n)