mercredi 10 août 2016

Keyed Random Shuffles in Python [on hold]

I have a list a=[num1,num2,...,numn]. I am shuffling it with random.shuffle(a). However what I want as a functionality is the shuffle algorithm to take as input a key, and the owner of the key to deterministically produce the same shuffles? Is that possible? Is there any build-in function for that?




Aucun commentaire:

Enregistrer un commentaire