cheers lorenzo*perl -e "my @toshuffle = qw (a b c d e f g h);$rand{$_}=1 for @toshuff +le;print keys %rand;" ##OR in a sub-way sub shuffle_array{ my @ar = @_; my %rand; $rand{$_} = undef for @ar; my @ret = keys %rand; return @ret; }
In reply to Re: Array Shuffle
by Discipulus
in thread Array Shuffle
by dunno260
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |