They hit keys completely at random. Give them something to type and see how close they get.
Randomness: demo mode, from your browser's generator.
There's a famous thought: give a monkey a typewriter and endless time, and by pure chance it will eventually type the complete works of Shakespeare. It sounds silly, but the math says it's true. The catch is how long "eventually" really is. This page lets you watch it happen and feel the size of the numbers.
Each monkey has 27 keys: the letters a to z and a space bar. Every key press is chosen at random, with each key exactly as likely as any other. Nobody is steering them. The page just watches what comes out.
Whenever a monkey happens to type a real English word between two spaces, it's marked in yellow and the longest ones go on the word shelf. Two- and three-letter words turn up now and then. Long ones are very rare and worth celebrating. Red marks show a monkey setting a new record on the phrase you gave them: the most letters of it typed correctly, in order.
Every extra letter makes the job 27 times harder. Three letters, like "cat", takes about 20,000 key presses, which the monkeys do in seconds. Your name might take a few minutes at Ludicrous speed. "To be or not to be" takes about 1025 presses, which is longer than the universe has existed. All of Hamlet, about 130,000 letters, would need a number with 186,000 digits. Even if every atom in the universe were a monkey, they would not get close.
Today the keys are picked by your web browser's built-in random number maker, which is a very clever math formula. Soon this lab is plugging in a quantum random number generator: a small USB stick from Crypta Labs that measures tiny, unpredictable particles of light. Then the monkeys' keys will come from real quantum events, and the dot at the bottom will turn from yellow to green. At Ludicrous speed the monkeys type faster than the stick can keep up, so the page shows what share of the keys were quantum.
Type a short word, like your name or a pet's name, and switch to Ludicrous to give the monkeys a fair shot. Watch speed lets you read along. Turn the sound on for typewriter clacks and a bell when a monkey finds a good word.