http://qs321.pair.com?node_id=441233


in reply to A bad shuffle

I've done some research on combinations and permuations in perl, and after a bit of hunting, I found:

Math::Combinatorics

This should do exactly what you want. I must say however, that I've never used it, so I don't know about it's relative speed and so on.
----
My mission: To boldy split infinitives that have never been split before!