sub shuffler{ foreach (@_){ do{$r = int(rand($#_+1)); }while ((($r == $c) ||($temp[$r]))); $temp[$r]= $_;$c++; } return @temp; }
Thatll do it for you for a 1 dimensional array
hope it is what you were looking for
Edited by planetscape - added code tags
In reply to Re: Array Shuffle
by zer
in thread Array Shuffle
by dunno260
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |