THE TRUTH ABOUT THE SPOTIFY SHUFFLE

A very common feature of Spotify is the Shuffle, this puts songs from a certain album/playlist in a different order than they are usually in. The entire purpose of the shuffle is to be random, but what if i told you the shuffle uses a system that is much less random and more systematic, but makes it feel much more random.

Lets take a simple example that shows the true meaning of randomness before we understand the shuffle system:
If you asked anyone what the result would be if you randomly flipped a fair coin any given number of times, they would probably say an alternating sequence between heads and tails: HTHTHTHT……., and this would seem random. However, true randomness means you can constantly have consecutive heads or consecutive tails as every flip is independent to the one before it! Now lets take this same logic into the shuffle!

Say I have a playlist with 100 songs, out of which 5 of them are made by Ed Sheeran. If the shuffle was truly random there is always a chance I will get all five of them in a row, but this wouldn’t feel random to an average listener, it would seem like a bug, and while this system is as random as it could get, it must be rigged to give variety and prevent such a situation from happening. Rather the system actually evenly splits certain genres or artists across the playlist. For example:
Shuffle #1(One case for truly random, what listeners don’t like):
Rock–>Pop–>Pop–>Pop–>Jazz
Shuffle #2(Balanced and rigged, what listeners like):
Pop–>Rock–>Pop–>Jazz–>Pop
So if I have a case where 20% of my playlist is Country music, Spotify will map out the songs and space them exactly 5 spots apart, and will do this for all the other genres. The system I said would work, except for the fact that the shuffle on a certain playlist would be nearly identical everytime! The scientists who created this logic saw this through, so they introduced a tiny amount of random offset so the entire playlist isn’t completely in a pattern, so the country song could play in the 4th or 6th slot rather than exactly the 5th, ensuring a varied listening set everytime!

So next time you listen to your favorite playlist using Shuffle, think back to the genius math behind it!