joecamelmy @ary = qw(a a b c d e f f f g h i i j k l l); my %unique = map { $_, 1 } @ary; my @randUnique = sort { rand(1) <=> rand(1) } keys %unique;
In reply to Re: random index in array - no duplicates
by joecamel
in thread random index in array - no duplicates
by emilford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |