in Python: I have a list of 5 elements: list= ['cat', 'dog', 'horse', 'pig', None] and i need to distribute them uniformly in a column of 200 rows, so that each row will have an animal that was chosen randomly. I have read that random doesn't choose values uniformly, but I need that the probability for each animal to appear in a specific row would be equal. I thought about using sample.random.uniform but I'm not sure how to implement what I need...
Aucun commentaire:
Enregistrer un commentaire