I have a list of words
count=100
list = ['apple','orange','mango']
for the count above using random function is it possible to select 40% of the time apple, 30% of the time orange and 30% of the time mango?
for ex:
for the count=100, 40 times apple, 30 times orange and 30 times mango.
this select has to happen randomly
Aucun commentaire:
Enregistrer un commentaire