This can probably be accomplished in a less heavy application than Perl. (I haven't timed it, but I'd try gawk.)
faster still but less "random" would be one expr: expr 64 + $$ % 15 terry.