Spotify redesigned its shuffle feature to balance statistical randomness with user perception. While the previous implementation used pure randomization (Mersenne Twister), users complained about repetitive patterns. The new 'Fewer Repeats' system generates multiple random sequences, scores them based on listening history and recency, then selects the freshest option. This approach maintains mathematical randomness while reducing perceived repetition. Premium users now get this as default, with classic random shuffle still available as 'Standard Shuffle'.

4m read timeFrom engineering.atspotify.com
Post cover image
Table of contents
How we balanced statistical randomness with listener intuitionUnderstanding the problemOur approach: fewer repeats, same randomnessStandard Shuffle: still pure randomnessFine-tuning for the future
5 Comments

Sort: