Liste aléatoire Python
import random
#random numbers 0-9 in a list of length 10
array = [random.randint(0,9) for i in range(10)]
print(array)
Angry Anaconda
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
n = random.random()
print(n)
random.choice(seq)¶
Return a random element from the non-empty sequence seq.