In python, random.shuffle shuffles the element of a list in place.
I was wondering if it's guaranteed that the elements will be in a different order after the shuffle or if it is truly random, in which case I would expect the elements to be in the same order as before the shuffle about on average 1 time out of N! shuffles.
Aucun commentaire:
Enregistrer un commentaire