in reply to Derangements iterator
use List::Util 'shuffle'; my @from = shuffle(@ARGV); print "$from[$_-1] => $from[$_]\n" for 0..$#from;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Derangements iterator
by jdporter (Paladin) on Dec 29, 2005 at 19:09 UTC | |
by Roy Johnson (Monsignor) on Dec 29, 2005 at 19:14 UTC | |
by Anonymous Monk on Dec 31, 2005 at 12:29 UTC | |
by Jedaļ (Initiate) on Dec 31, 2005 at 13:34 UTC |