jeudi 1 février 2018

Random choice from list at least once

I have 10 elements in a Python list. I want to select an item randomly from this list - multiple times (more than 1000 times...). And, I want to ensure that all 10 are elements chosen at least once. Is there a way to do it in Python?

random.choice is not helping me...(at least, I do not know how to).




Aucun commentaire:

Enregistrer un commentaire