in reply to Selecting random records from an array
my $n = @input*.75;
my $m = @input;
my @subset = grep rand($m--)<$n?$n--:0, @input;
Yes, I watch meteor showers
No, I do not watch meteor showers
My meteors prefer to bathe
Results (151 votes). Check out past polls.