sub tenOf20 { my @set = 1..20; for( 0..9 ) { my $r = $_ + int( rand(@set-$_) ); @set[$_,$r] = @set[$r,$_] if $r != $_; } return @set[0..9]; }