Perfect randomness – and complaints
Since launch, Spotify shuffled playlists with the Fisher-Yates method, which is perfectly random. Yet users complained: a few songs by the same artist often played right after each other. Their question: "Why isn't your shuffling random?"
Your guess
5 artists, 4 songs each, shuffled: how often are two by one artist ever back to back?
The mistake is in our heads
People underestimate how much small random samples vary. So they often see clusters as non-random – this is called the clustering illusion. Add the gambler's fallacy: after a song by artist A, with true randomness the next one is not more likely to be by someone else. A coin has no memory.
Less random, so it feels more random
In 2014 Spotify rebuilt its shuffle, inspired by dithering from image processing. Each artist's songs are spread as evenly as possible across the playlist: with 4 songs, one comes roughly every 25%, with the gap varying randomly between about 20 and 30%. The desktop app got it first.
Apple knew the problem
On the iPod, too, shuffle seemed non-random: songs from the same album or artist came in clusters by chance. Apple then offered "Smart Shuffle", which let you set how likely similar songs were to play in a row. According to Lapham's Quarterly, Steve Jobs said: "We're making it less random to make it feel more random."
