random a list python code example
Example 1: python randomize list
import random
random.shuffle(list)
Example 2: python random liste
import random
liste = ["world, HELLO !", "hello world !"]
N = random.choice(liste)
print(N)
Example 3: python random generator from list
import random
n = random.random()
print(n)