my $n = @input*.75; my $m = @input; my @subset = grep rand($m--)<$n?$n--:0, @input;