`itertools.permutations`

(docs).These are in sorted order.

You need to do

`random.shuffle`

if you want them in random order. Perhaps there is a better way that I don't know? What I'd like is to get a generator that can give the next permutation at random, without the chance of a dup, and without constructing an actual list of all 10! elements.

## No comments:

Post a Comment