in reply to A reproducible shuffle? ("stable shuffle")
If this sounds like what you want, there may be a way to create a rank()/unrank() routine for permutations. I have done it for combinations before. If nothing else, you could create a permutations iterator where the ID is the number of iterations to generate the desired shuffle. You could then just have the iterator loop ID times.
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A reproducible shuffle? ("stable shuffle")
by AK108 (Friar) on Feb 04, 2008 at 19:17 UTC |