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


in reply to Re: Random shuffling
in thread Random shuffling

Thank you, that was an insightful reply

First time I tried to shuffle, I used a different Perl module, but exact same syntax otherwise. That module is

use Array::Shuffle qw(shuffle_array shuffle_huge_array); # from https://metacpan.org/source/SALVA/Array-Shuffle-0.03/samples/benchmark.pl

I got inexplicable results using that module to randomly shuffle the sequences. That one is supposed to use the Fisher Yates Knuth algorithm. I contacted the author of the Perl module, and he suggested I cross verify using another Perl module. So using List::Util now.

Replies are listed 'Best First'.
Re^3: Random shuffling
by Laurent_R (Canon) on Jun 20, 2015 at 19:36 UTC
    And can you say what is inexplicable in the results you obtained?