how to print random item as list in python code example Example: python random generator from list import random n = random.random() print(n)