note
runrig
And mentioned numerous times in numerous places, the '<code>next if $i == $j</code>' is unnecessary, as it rarely saves an element swap (except on the smallest of arrays), so it actually costs more to do the comparison every time rather than just swapping unconditionally.
<p>BTW, in case anyone was wondering who these guys [http://www.echonyc.com/~velvim/ff.htm#FISH33|Fisher] and [http://www.echonyc.com/~velvim/yy.htm#YATE3|Yates] were, [http://www.americanscientist.org/Issues/Comsci01/Compsci2001-07.html|here's] some links. They're hard to find when almost every reference to Fisher and Yates (and especially with the term 'shuffle') on [http://www.google.com|Google] is a perl reference :-)
1869
1905