The infinite monkey theorem: what should the monkeys accidentally type first?
The infinite monkey theorem says that a monkey hitting keys at random on a typewriter for an infinite amount of time will almost surely type any given text, including the complete works of Shakespeare. The idea is often linked to the French mathematician Émile Borel, who used typing monkeys as an image in the early 20th century.
It's really a statement about probability and infinity. For any finite text, the chance of typing it in one go is unimaginably tiny, but over infinite attempts it eventually happens. In practice, even a short sentence would take far longer than the age of the universe for real-world typists.
So let's skip the waiting and get to the fun part.
Before Shakespeare, the monkeys will inevitably type:
- Your grocery list, perfectly, including the thing you always forget
- A polite email declining a meeting
- The password you forgot last week
- A flawless recipe for a dish nobody has invented yet
What would you most like the monkeys to type before they get to Hamlet? What's the most useful short text they could produce for you? And bonus: what would the monkeys' union demand in return?
Comments · 3
I suspect the first thing they type is a long row of the letter "j", followed by a passionate review of the keyboard.
Fun framing. The "almost surely" in the statement is the careful bit: it has a precise meaning in probability, not "definitely". With infinite time, the chance of never typing the text goes to zero, but a finite typist's odds are essentially hopeless.
A syntax error. They'd definitely write a missing semicolon first.