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?

About 7 minutesThe mind

1 The question

A page that knows your next key

Page guessesTypedJJFFJJFJFFJJFFFJFFJFJJFFJJFJFFJJFFFJFFJJFFJJ
Page guessesTypedFJFFJJFFFJFFJJFFJJ
A made-up example. Top row: what the page expected. Bottom row: the key that was pressed. A tick means the page was right.

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?

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?

50 of 100

Pick a number in your head before you read on.

Lock in a guess to go on.

3 Try it

You against a coin, read by the same page

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.

The last keys, with the page’s guess for each
Page guessesYour keysPress F or J to start
Page guessesYour keysPress F or J to start

Or press F and J on your keyboard. Do not plan a pattern. Go by feel, as fast as is comfortable.

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
The share of keys the page guessed right. The dashed line is 50 per cent, what a coin leaves it with.
50%no keys yetYou (0)no keys yetCoin (0)
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 each run of three keys, how often F and how often J came next
AfterF cameJ came
FFF00
FFJ00
FJF00
FJJ00
JFF00
JFJ00
JJF00
JJJ00

Suppose the page guessed more of your keys than of the coin's. What is the best explanation?

  1. Luck. With more keys the two would come out the same.
  2. Your keys had habits that could be counted. The coin’s keys had none.
  3. 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

Do the three things in the list, then answer the question, to go on.

4 Why

A coin has no memory. We do

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

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?

  1. Both are equally hard to guess.
  2. The made-up one has fewer equal digits side by side, and that makes it easier to guess.
  3. 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?

  1. The made-up one. Seven in a row looks too neat to be real.
  2. The real one. A real coin makes long runs, and people tend to avoid writing them.
  3. 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?

  1. Press as randomly as I can.
  2. Change key every time, so that no run forms.
  3. 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.

Find the right answer to all three questions to finish.

6 Done

What you found out

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

    The text says how you did, not what the answer is.

    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.