jeudi 15 septembre 2016

What code can I use if I have ten numbers and I want to produce 1000 different randomly shuffled orders of the the ten numbers

I can use this to find all of the possible options, however, I want a random sample of 1000 from this set:

items = range(1,11) from itertools import permutations for p in permutations(items): print(p)




Aucun commentaire:

Enregistrer un commentaire