how to pick a random index from a list in python except the given ones code example Example: python random generator from list import random n = random.random() print(n)