A Better Class of Monkey
Stephen Hawking is not a man whose word most people would casually second-guess. He was, by any measure, one of the great scientific minds of the twentieth century — a physicist who spent his career untangling black holes and the origin of the universe from a wheelchair, using a voice synthesizer, after doctors had given him a couple of years to live back in 1963. He beat that prognosis by over fifty years. When Stephen Hawking said something, people listened. His book A Brief History of Time sold something like ten million copies, which is not a normal thing for a physics book to do.
So when, in that same book, Hawking used the old comparison of monkeys and typewriters — that a horde of monkeys hammering away at typewriters would, "very occasionally by pure chance," type out one of Shakespeare's sonnets — nobody much argued with him. It's a throwaway line in his book, a bit of color on the way to a point about the odds of a smooth, orderly universe. But it's also, if you think about it for more than a few seconds, a very strange thing to say. And that's exactly the point of this book: I don't want to just listen and nod. I want to know what "very occasionally" actually means. Is it once a week? Once a year? Once in the lifetime of the universe? Once in ten thousand lifetimes of the universe? Those are all "very occasionally," and they are not remotely the same thing.
Notice, too, the word Hawking reached for. Not "a monkey." Not "a few monkeys." A horde. That word is going to matter in a page or two, because when I set up my own version of this experiment, I'm going to want a horde of my own — and I have a good idea where to find one.
Before we get to the arithmetic, though, it's worth pointing out that someone already tried this with real monkeys, and it did not go well.
In 2003, a group of lecturers and students at the University of Plymouth got a grant — a couple thousand pounds, courtesy of the Arts Council — to put the theory to the test. They installed a computer keyboard in the enclosure of six Celebes crested macaques at Paignton Zoo in England, hooked it up to a website so the world could watch, and left it there for a month.
The results were not Shakespeare. The lead male macaque's first contribution to English literature was to find a rock and beat the keyboard with it. His colleagues, no more literary-minded, spent much of their remaining screen time urinating and defecating on the machine. By the end of the month, six monkeys had produced five pages of text, composed almost entirely of the letter S. Toward the end there were a few tentative appearances by A, J, L, and M — signs, perhaps, of an emerging literary voice — but nothing resembling a word, let alone a sonnet. The zoo's own scientific officer summed it up: the experiment had little scientific value, except to show that the monkey theory itself was flawed.
I have no plans to improve on this. Monkeys, it turns out, are bad at literature and worse at typing, and I am not equipped to keep a horde of macaques in my house regardless. But their failure points at something real: actual monkeys get bored, get distracted, and eventually go looking for a rock. What Hawking's line really requires isn't a monkey at all — it's something that will sit at a keyboard forever, producing letters at random, without ever getting tired, hungry, or annoyed. That, it turns out, is a much better description of a computer than of a monkey.
So here's the experiment I actually want to run — and here's exactly what I'm going to count as success, because in arithmetic, unlike in casual conversation, we have to be precise about what we mean.
I'm going to strip the problem down to its bones. No capital letters. No spaces. No commas, periods, or apostrophes. Just the plain lowercase letters, a through z, run together one after another exactly as they appear in the sonnet, with everything else stripped away. That's the target: one unbroken string of lowercase letters, matching a Shakespeare sonnet letter for letter. It's a simpler task than reproducing the sonnet exactly as printed, punctuation and all — and, as we're about to see, it's already about as much as anyone could ask for.
There are, by any reasonable estimate, several billion computers on Earth — desktops, laptops, phones, servers, the works. I can't realistically borrow all of them. So let's set our sights lower and ask for a mere one billion. That's still, by any definition, a horde — Hawking would approve.
Suppose, then, that I could borrow one billion computers at once, and set every one of them to the same simple task: output lowercase letters completely at random, one after another, forever, and watch for the moment one of them produces the exact letter-string of one of Shakespeare's sonnets.
A computer doesn't get bored. It doesn't need a rock. And it's fast — let's say, conservatively, that a single computer can spit out a million random letters every second, which is a very leisurely pace by computer standards.
That leaves one question, and it's the only one that matters: if I borrowed your computer for this experiment, how long would I actually need to keep it?
Last revised 2026-11-16