Why “Random” Didn’t Feel Random
For the past five years, Spotify’s Shuffle used a standard, well-understood randomization algorithm to generate playlist orders. Mathematically, this approach was sound; every possible ordering of a playlist was equally likely. But listener feedback told a different story. Users consistently reported that Shuffle felt repetitive, with certain songs surfacing again and again while others seemed to disappear.
The core issue is a well-known cognitive mismatch: statistical randomness is not the same as perceived randomness. A coin landing heads five times in a row is a perfectly valid sequence, yet it feels anything but arbitrary. The engineering challenge, then, was not to make Shuffle less random, but to bridge the gap between probability and human intuition.
The “Fewer Repeats” Algorithm
Spotify’s solution is a new mode called Fewer Repeats, which preserves the mathematical unpredictability of a true shuffle while actively avoiding the patterns that listeners perceive as unfair. The system operates in three steps:
Generate multiple random sequences. Each candidate sequence is an independently randomized version of the full playlist, generated using standard randomization techniques.
Score each sequence for freshness. The algorithm assigns a “freshness score” based on how recently each song was played, both within the target playlist and across the listener’s broader Spotify history. Sequences lose points when recently played tracks appear early in the order — the more recent a play and the earlier it appears, the more points are deducted.
Select the freshest sequence. The candidate with the highest freshness score becomes the final Shuffle order.
In practice, this means that if you have just listened to “Bohemian Rhapsody” or “Sweet Caroline,” those tracks are gently pushed further down the queue, creating room for other tracks to surface. The underlying randomization logic is unchanged — Spotify is not weighting the dice; it is simply choosing the outcome among several equally random options that feels most varied to a human listener.
Standard Shuffle Remains Available
For users who prefer the classic experience, Standard Shuffle remains fully intact. This mode uses the Mersenne Twister, a well-known pseudorandom number generator. Each track is assigned a unique value derived from a random “seed” number, and the playlist is ordered by those values. The result is a sequence that is mathematically fair, completely unpredictable, and entirely indifferent to listening history or recent plays — which, as the company acknowledges, can lead to the repetition users complain about.
Ongoing Tuning
Development continues on how freshness is measured and weighted. Spotify is experimenting with different factors — including the weighting of recent plays, artist diversity, and the effect of playlist size — all without introducing noticeable latency for the listener.
Fewer Repeats is now the default Shuffle experience for Premium users, with Standard available as an option for those who want pure randomness. True randomness will always have its quirks; pairing it with a little contextual judgment makes the outcome sound the way people expect it to — unpredictable, varied, and fun.



