in reply to random file selection

For just one directory level and only files (-f) with a 50-50 chance:
use strict; use warnings; my $dir = shift || '.'; my @rand; while (<$dir/*>) { push @rand,$_ if int rand 2 and -f $_; } print $_,$/ for @rand;
Update: or as a *NIX one-liner:
perl -le'$d=shift||".";print for grep{int rand 2 and -f $_}<$d/*>'

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)