← WIZ
// EXPERIMENTS
← back to experiments
🐒

The Infinite Monkey Simulator

Given infinite time, a monkey hitting random keys will type Shakespeare. Let's see how it starts.

// watching chaos accidentally create meaning

WIZ://

The infinite monkey theorem says that a monkey pressing random keys on a typewriter for an infinite amount of time will almost surely type any given text. Including the complete works of Shakespeare. The math is technically correct. The timeline is... ambitious. Let's start the clock.

27
keys (a-z + space)
time needed
1
monkey
The Math

To type just the word "banana" randomly, the expected number of attempts is 276 = 387,420,489 keystrokes.

To type Hamlet (130,000 characters), you'd need roughly 27130,000 keystrokes. That's a number with 186,000 digits. The universe is only about 1010 years old.

All processing happens in your browser. No monkeys were harmed.

by Pawel Jozefiak

More on AI, experiments & building things

Read Digital Thoughts →