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


in reply to Re: random permutations
in thread random permutations

Or see abigail's module Algorithm::Numerical::Shuffle for a correct way to do it.