for (0 .. $#chars){ my $randomIndex = rand( @chars ); print "\n$chars[$randomIndex]"; $chars[$randomIndex] = $chars[-1]; pop @chars; }
In reply to Re: Random but non-repeating array loop
by I0
in thread Random but non-repeating array loop
by ckohl1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |