LearndleNo. 4Tuesday 1 December 2026
The page that guessed your keys
Can you press two keys in a truly random order, when a page tries to guess every one first?
This browser is not keeping data, so your progress will be lost when you close the page.
This discovery is not open yet
1 The question
A page that knows your next key
Welcome back. This is where you were.
Press F or J, again and again, in an order you make up so that nobody could guess it. Before every press, this page writes down which key it expects.
You will see its guess above each of your keys. It cannot see you, and it has never met you. It only has the keys you press.
Then a coin takes your place and plays the same game. One of you is easier to read than the other.
In about 7 minutes you will be able to
- Explain why keys made up by feel are easier to guess than a coin.
- Name two habits people have when they try to be random.
- Choose a way to get an unpredictable result, and say why it works.
2 Your guess
How many will it get right?
Welcome back. This is where you were.
Say you press 100 keys, F or J, in whatever order you like, trying to be as random as a coin. The page guesses each one before you press it. A coin would leave it right about 50 times in 100.
How many of your 100 keys will the page guess right?
Pick a number in your head before you read on.
3 Try it
You against a coin, read by the same page
Welcome back. This is where you were.
Two lanes, one guesser. In the first, you press F or J. In the second, the page flips a coin for each key. The page guesses each key before it is shown, and it does the same sums in both lanes. It looks at the last four keys, counts what came after them before, and picks the key that came more often. When it has nothing to go on, it flips a coin of its own.
Or press F and J on your keyboard. Do not plan a pattern. Go by feel, as fast as is comfortable.
The page flips a fair coin for each key. Nothing about you is used.
- Your keys
- 0
- Page right on yours
- too few keys yet
- Coin flips
- 0
- Page right on the coin
- too few keys yet
- Your longest run of one key
- none yet
- The coin’s longest run
- none yet
- How often your key changed
- none yet
- How often the coin’s changed
- none yet
What did the page learn?
After each run of three keys, how often F and how often J came next, in the lane you are looking at. A long bar on one side is a habit.
| After | F came | J came |
|---|---|---|
| FFF | 0 | 0 |
| FFJ | 0 | 0 |
| FJF | 0 | 0 |
| FJJ | 0 | 0 |
| JFF | 0 | 0 |
| JFJ | 0 | 0 |
| JJF | 0 | 0 |
| JJJ | 0 | 0 |
Suppose the page guessed more of your keys than of the coin's. What is the best explanation?
Luck explains a handful of keys, not hundreds. On a fair coin the page settles close to half. Your keys can settle somewhere else, and they will if you keep going.The page does the same sums in both lanes. Where your keys follow a habit, such as changing key too often, counting finds it. A fair coin has no habits, so the best any guesser can do on it is about half.It does not know who is pressing. Both lanes go through the same function. The difference comes from the keys, not from the page.- Luck. With more keys the two would come out the same.
- Your keys had habits that could be counted. The coin’s keys had none.
- The page is built to do better on people than on coins.
Show the answer
Your keys had habits that could be counted. The coin’s keys had none.
The page does the same sums in both lanes. Where your keys follow a habit, such as changing key too often, counting finds it. A fair coin has no habits, so the best any guesser can do on it is about half.
Try these
- Press at least 60 keys yourself, as randomly as you can.not done yet
- Switch to the coin and let it play 200 flips.not done yet
- Open "What did the page learn?" and look.not done yet
4 Why
A coin has no memory. We do
Welcome back. This is where you were.
A fair coin does not remember its last flip, so nothing in the past helps a guesser. However clever it is, it is right about half of the time in the long run. People are different. We try to be random by feel, and our feel has habits.
We change key too often
Studies of people making up coin flips find the same thing again and again: too many changes from one side to the other. A fair coin changes side half of the time. Your keys changed not measured yet of the time. If you press keys in the experiment above, this shows your own number.
We avoid long runs
A run of five heads in a row looks wrong to us, so we stop it. But real coins make long runs. In 100 flips, a run of six or more of the same side turns up about 81 times in 100 sheets, and seven or more about 54 times. Your longest run was not measured yet keys.
What the page does with that
It counts. After each run of up to four keys it keeps a tally of what came next. If you tend to change key after two equal keys, the tally says so, and the page bets on the change. You never told it anything. The habit was in the keys. The page was right on not measured yet of yours.
If you guessed fewer than 46
You guessed {guess} of 100. That is fewer than a coin would leave it with. The page cannot do worse than chance for long, because even with nothing to go on it gets about half by luck.
If you guessed 46 to 55
You guessed {guess} of 100. That is the score of a typist as random as a coin. Most of us feel that we are that unpredictable. Some people are close. Many are not, because feeling random and being random are different things.
If you guessed 56 or more
You guessed {guess} of 100. You expected to be readable. That is a good instinct: the studies and the experiment above find that people usually are. How far above half depends on how many habits you have and how many keys you give the page.
Does a high score mean you are not random?
No. It means your keys had habits that this simple counter found in a short time. Some players score close to half. Practice and feedback can push people closer to random, but not without help. The surest way to be unpredictable is to use something that has no habits.
5 Use it
Three new situations
Welcome back. This is where you were.
Use what you found out. A wrong answer explains itself, and you can try again. Only your first try counts for your result.
Someone makes up a six digit PIN by typing digits that feel random. Compared with six digits chosen by dice, what is likely?
Only the dice digits are free of habits. A person leaves out things that feel too tidy, and that leaves a trace.People avoid doubles because they look unrandom. In random digits, some pair of neighbours is equal about 41 times in 100 (one minus 0.9 to the power 5, worked out here). A person’s PIN leans away from that, and a guesser can use the lean.That is the belief the experiment tested. A person feels unpredictable and is not.- Both are equally hard to guess.
- The made-up one has fewer equal digits side by side, and that makes it easier to guess.
- The made-up one is harder, because a person is unpredictable.
Show the answer
The made-up one has fewer equal digits side by side, and that makes it easier to guess.
People avoid doubles because they look unrandom. In random digits, some pair of neighbours is equal about 41 times in 100 (one minus 0.9 to the power 5, worked out here). A person’s PIN leans away from that, and a guesser can use the lean.
A teacher gets two sheets of 100 coin flips. One was made with a real coin, the other made up by a student. One sheet has seven heads in a row. Which sheet is it probably?
That feeling is why students leave runs out. Real sheets have them.In 100 real flips, a run of seven of one side turns up about 54 times in 100 sheets (worked out here). Students making up flips tend to avoid long runs, so they rarely write one. It is a bet, not proof.Every exact sequence is equally unlikely, but that is not the question. Long runs are common among real flips, about half of the sheets have one of seven, and rare among made-up ones.- The made-up one. Seven in a row looks too neat to be real.
- The real one. A real coin makes long runs, and people tend to avoid writing them.
- There is no way to tell. Every sequence is equally likely.
Show the answer
The real one. A real coin makes long runs, and people tend to avoid writing them.
In 100 real flips, a run of seven of one side turns up about 54 times in 100 sheets (worked out here). Students making up flips tend to avoid long runs, so they rarely write one. It is a bet, not proof.
You want a guesser to have no chance of reading your next key. What should you do?
That is what you tried above. Feeling random and being random are different, and a counter can read the difference.That is the easiest pattern of all to read. After a few presses the page would be right every time.A coin has no habits. The best any guesser can do on it is about half, however many keys it sees.- Press as randomly as I can.
- Change key every time, so that no run forms.
- Let a coin, a die or a random number tool decide each key.
Show the answer
Let a coin, a die or a random number tool decide each key.
A coin has no habits. The best any guesser can do on it is about half, however many keys it sees.
6 Done
What you found out
Welcome back. This is where you were.
People cannot make up random keys by feel. We change key too often and avoid long runs, and a page that only counts what came after each short run of keys can use that to guess more than half. Only a coin, which has no habits, stays at half.
When something has to be unpredictable, such as a draw or a code, do not make it up by feel. Let a coin, a die or a random number tool decide.
Your result
A day counts for the streak when you finish that day’s discovery on that day, by your own clock. Finishing an older one from the archive marks it done, but it does not add to the streak.
Sources, and what the models leave out
The pages below could not be opened directly while this edition was made, so each fact was checked through search results that quote them. The reported 70 to 80 per cent for Scott Aaronson’s original program comes from a quote in a comment, not from his own text, so the page says it is second-hand and gives it only as a report. That people over-alternate and avoid long runs appeared in several papers. The chance of a run in 100 flips (about 81 per cent for six or more, 54 per cent for seven or more) was worked out here and matches the figure of about 80 per cent for six in the search results. The 41 per cent for a doubled digit in a six digit PIN is worked out here too. The page’s guesser is a toy: it looks back at most four keys and flips a coin when it has nothing to go on, and it is not a model of the brain. A made-up sample is used for the first picture and is called that. On a fair coin no guesser can beat 50 per cent in the long run. Nothing is sent from your browser, and nothing here is security advice.
- The Aaronson Oracle (Bill Mill’s notes)What the program does: it guesses the next key of f and d from the last few presses.
- GreaterWrong: a quote from Scott Aaronson’s blog on the oracleThe reported 70 to 80 per cent hit rate for many players, and one student guessed at exactly 50 per cent. Second-hand.
- docs.rs: aaronson-oracleA short implementation that counts what followed each run of keys.
- Wagenaar (1972), Sequential response bias (dissertation, TNO)People are poor at making random sequences and lean for or against certain keys after earlier ones.
- Falk and Konold: making sense of randomness (University of Texas)People see randomness in too many alternations and judge long runs as not random.
- Falk and Konold (1997): making sense of randomness (UMass)The same finding in a second copy of the paper.
- Zhao and others (2014), Journal of Experimental PsychologyOver-alternation is widespread, with some pushback on the strongest claims.
- Neuringer (1986): can people behave randomly?People can come closer to random with feedback, but not on their own.
- PubMed Central: randomisation experiments with peopleRandomisation tasks and the bias away from repeats.
- John D. Cook: probability of long runsHow often a run of a given length shows up in a number of flips.
- Mark Schilling: the longest run of heads (CSUN)The longest run in 100 flips is usually 6 or 7.
- Mathematical Association of America: Schilling’s paperThe rule of thumb for the longest run.
- Scientific American: has anyone ever flipped heads 76 times in a row?The expected longest run in 100 flips is about 6.