Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Technology min read

Why Does Random Shuffle Keep Playing the Same Artist

True randomness is clumpy. Spotify made shuffle less random so it would feel more random.

A truly random shuffle produces clusters — runs of the same artist that feel deliberate. Our brains are wired to spot patterns, so we mistake natural clumps for a broken algorithm.

Probability of a streak

If 10 of your 100 songs are by one artist, the chance any single song is by them is 0.10. Three in a row is about 0.001 — but with 98 possible starting positions, the expected number of such streaks is close to 0.1, so it happens roughly once every 10 plays.

P(3 in a row)≈(n−2)×p3P(\text{3 in a row}) \approx (n-2) \times p^{3}

Approximate chance of at least one three-in-a-row streak

The birthday paradox analogy

With just 23 people in a room there is a 50 percent chance two share a birthday. The surprise comes from the number of possible pairs — C(23,2) = 253 — not from the chance for any single pair.

Expected three-in-a-row streaks

  1. 1

    p per song

    p=10/100=0.10p = 10/100 = 0.10
  2. 2

    p of 3 in a row

    0.103=0.0010.10^{3} = 0.001
  3. 3

    Starting positions

    100−2=98100 - 2 = 98
  4. 4

    Expected streaks

    98×0.001=0.09898 \times 0.001 = 0.098
Answer

About 1 in 10 full shuffles will have a three-in-a-row streak by one artist.

The formula behind it

Streak Probability

E≈(n−2)p3E \approx (n-2)p^{3}

The takeaway

Genuine randomness produces clusters. Spotify deliberately spaces artists out — making the shuffle less random so it feels more random.

Back to all stories