in reply to Re: removing the goto
in thread removing the goto
use List::Util 'shuffle'; use List::MoreUtils 'uniq'; my @shuffled = shuffle( uniq @weighteddiv ); @selected = @shuffled[0..4];
In Section
Seekers of Perl Wisdom
in reply to Re: removing the goto
in thread removing the goto
use List::Util 'shuffle'; use List::MoreUtils 'uniq'; my @shuffled = shuffle( uniq @weighteddiv ); @selected = @shuffled[0..4];