how to create list of random numbers in python code example Example: python function to print random number import random n = random.randint(0,22) print(n)