import random
#random numbers 0-9 in a list of length 10
array = [random.randint(0,9) for i in range(10)]
print(array)
import random
mylist = ["apple", "banana", "cherry"]
random.shuffle(mylist)
print(mylist)
import random
n = random.random()
print(n)
animal = ["monkey","cat","goat","cow","horse","snake","dog"]
randomlst = []
n = len(animal)
for i in random.sample(range(0,n),n):
randomlst.append(animal[i])
print(randomlst)
random.choice(seq)¶
Return a random element from the non-empty sequence seq.
my_list = [func_test_1, func_test_2, func_test_3]
random.choice(my_list)()