http://www.perlmonks.org?node_id=31937


in reply to Hashing the order out of an array (Re: Randomize an array)
in thread Randomize an array

Sick, slick...and imperfect. :-)

When hashing random elements you expect to see a certain number of collisions in buckets. The second one in the bucket will be ordered after the first element. Therefore your algorithm is not a perfect shuffle, and the rising sequences test that I described in RE (tilly) 2: Randomize an array should be able to detect that.

But even so, I like it. :-)