TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

2 点作者 log101超过 2 年前
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 条评论

r721超过 2 年前
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>
mtmail超过 2 年前
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>
Raed667超过 2 年前
Even since the iPod, it was found that people don&#x27;t really want real randomness when they shuffle their music.