in reply to Re: Add a fixed number of unique elements to hash
in thread Add a fixed number of unique elements to hash
There is also this that does the equivalent of shuffle and pick N.
use List::AllUtils qw( sample ); my @selected = sample $numOfRandFiles, @audioFiles;
|
|---|