in reply to
New golf game (for the extremely bored)
Two solutions of 38 characters:
# 1 2 3
perl -le'print+(H,T)[rand 2]for a..gr'
perl -le'print 1<rand 2?H:T for a..gr'
perl -le'print+rand>.5?H:T for a..gr'
Same as 1..200, really ;)
Basically you just use letters instead of numbers.
a..z yields the 26 characters of the alphabet,
a..az yields those and another 26 prefixed with a
a..bz yields those and another 26 prefixed with b
and so on. Same system, more "numbers" ...
Incidentally a..gr yields 7*26 + 18 "numbers".
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (172 votes),