which would also give you a permutation of the lis...
# codereview
k
which would also give you a permutation of the list you get with your initial approach, don't know if that matters