I want to append all the numbers from 0-1 to an array.
import random
random_num=[]
for i in range(100):
random_num.append(random.uniform(0.0,1.0))
print random_num
My code only give add 100 numbers to the list. How do I get it to add all possibles numbers to that list?
Aucun commentaire:
Enregistrer un commentaire