Has anyone looked for shakespeare in random digits?

I’ll send that to my word-search-junkie sister-in-law.

There are three words of length 5 but none of length 6 or 7:


$ for f in $(sort -f /usr/share/dict/british \
/usr/share/dict/american|uniq -i|\
egrep '^[[:alpha:]]{5,7}$');do fgrep -o -i $f /tmp/pi.txt ;done
ADORL
DWAMS
HEROD
$

Quoth Buzz, “Marry, to infinity and beyond!”

EXEUNT Buzz.

I wrote a program a little while ago to test the “infinite monkeys” concept. The program generates a random number between 1 and 27 (it includes " ") for each letter in a given word or phrase. So, a 4 letter word would have it generate 4 letters individually then check the generated word against the given word.

Adding even one character to the phrase to be found causes the number of attempts to rise drastically, as you can see below:

“t” = 34 attempts
“to” = 484 attempts
"to " = 14,315 attempts
“to b” = 1,808,104 attempts
“to be” = 16,733,694 attempts
"to be " = I gave up at 600,000,000 attempts

If it can’t match a 6 character phrase in 600,000,000 attempts, I doubt we’d see any works of Shakespeare during the lifetime of the universe. If I were to actually use all possible characters on a typewriter I doubt it would be able to determine a 3 letter phrase in any reasonable amount of time.

What, does he have a mouse in there?

Band Name!

The last five letters certainly could be.

I just noticed the OP has been banned. Maybe he found something in the random digits he wasn’t supposed to know.

Nice. :cool: