http://qs321.pair.com?node_id=618812


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];