TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How random you think Spotify(or companies with user data) is?

2 pointsby log101over 2 years ago
Hi HN, I have a question! As you know you can listen Spotify playlists in a "random" order. I've been wondering about this lately and I don't think there's any chance that these randomizers are implemented using regular rand() functions. Do you have any experience/idea on how these random functions are implemented in companies that have massive user data? What factors they take into account?

3 comments

r721over 2 years ago
Here is related Spotify Engineering blog post from 2014:<p>&gt;How to shuffle songs?<p><a href="https:&#x2F;&#x2F;engineering.atspotify.com&#x2F;2014&#x2F;02&#x2F;how-to-shuffle-songs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;engineering.atspotify.com&#x2F;2014&#x2F;02&#x2F;how-to-shuffle-son...</a>
mtmailover 2 years ago
It&#x27;s knows not be true random &quot;It doesn’t like songs that are totally different bumping up against one another&quot; and users wouldn&#x27;t like if the same song is played twice in a row regardless how logical that would be with rand().<p><a href="https:&#x2F;&#x2F;lifehacker.com&#x2F;the-reason-spotify-shuffles-aren-t-really-random-and-h-1849756947" rel="nofollow">https:&#x2F;&#x2F;lifehacker.com&#x2F;the-reason-spotify-shuffles-aren-t-re...</a><p><a href="https:&#x2F;&#x2F;medium.com&#x2F;immensity&#x2F;how-spotifys-shuffle-algorithm-works-19e963e75171" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;immensity&#x2F;how-spotifys-shuffle-algorithm-...</a>
Raed667over 2 years ago
Even since the iPod, it was found that people don&#x27;t really want real randomness when they shuffle their music.