my @picked = @list.pick(3); # randomly pick 3 elements; my @shuffled = @list.pick(*); # same as List::Util::shuffle
In reply to Re: Select value from array w/o replacement (or destroying the array)
by moritz
in thread Select value from array w/o replacement (or destroying the array)
by BioNrd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |