There is also this that does the equivalent of shuffle and pick N.
use List::AllUtils qw( sample ); my @selected = sample $numOfRandFiles, @audioFiles;
In reply to Re^2: Add a fixed number of unique elements to hash
by tybalt89
in thread Add a fixed number of unique elements to hash
by Vasek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |