Lurker News

Comments (230) 51 threads

Show all comments

Showing thread 2 of 51

ideonexus18 replies#
A great application for this is in randomizing playlists. My friends, who are also CS grads and should know better, have often complained that their MP3 players, CD carousels, etc play the same music too often claiming that the random is broken, when a song repeating in a short period of time or other songs never playing is what you would expect from a truly random selection. Using this algorithm, you'd be sure to hear all of your songs. I'm guessing most music services already do something like this.
nxc181 reply#
I think the original Zune had a bad randomizer. In my experience it would tend to play two songs from the same artist back to back.

Whether this was because they had a botched 'smart' randomizer or because they in fact used true random to shuffle, I may never know.

abritinthebay#
The iPod and iTunes used to do this too - it’s because of a behavior you’d actually expect in a true randomizer called clustering.

Supposedly Jobs specifically “fixed” this behavior and it’s why there used to be (still is?) a slider that allowed you to customize that behavior.

drewrv6 replies#
This is also an example of users saying they want one thing (randomness) when really they want something else (variety).
Sholmesy#
Both this and the GP are great lessons in software design.
nkrisc2 replies#
Great example of finding what users really want as opposed to what they say they want.
stubish#
Or a great example of how things fail when producers and consumers don't use the same language. If you don't understand the language your consumers are speaking, you are not going to produce what they want.

So next time some one tells you their computer is broken, don't reply saying it appears to be in one piece.

Tarq0n#
This sounds like a giant strawman to me. Where do programmers get the idea that a mode called 'shuffle' would call for sampling with replacement? The obvious software analogy to shuffling would be re-ordering a list randomly, not randomly drawing from a list.

I think this whole shuffling meme started with Spotify's engineers misunderstanding what they were asked to do, then claiming their customers don't know what they want when they obviously delivered the wrong feature.

cestith1 reply#
Shuffle and weighted random both give a better chance of variety than truly random. Shuffle is cheaper to calculate in terms of storage space.

The article is about weighting randomness based on past distribution. In a music playlist that may be enough. Some user might also want a term in the equation that weights songs they've rated highly to be favored over lower-rated or unrated songs.

gpawl#
"truly random" refers to how well a real distribution matches its intended distribution. So, a long cycle is not truly random, because many desired outcomes are physically possible to obtain.

This is orthognal to the choice of distributon. Shuffle and Weighted Sampling are different choices of distribution.

xg15#
This - and possibly also a reminder that the same words may mean different things for people with different backgrounds.

If someone with no specialized knowledge about math and probability requests their songs in a "random" order, I don't think one should assume they are insisting on an order sampled from a uniform distribution.

mulmen#
"If I had asked people what they wanted, they would have said faster horses." - Henry Ford
Jasper_#
Because the casual definition of "random" means "without a discernible pattern", which multiple artists in a row doesn't handle. Music shuffle algorithms sometimes go lengths to avoid patterns and duplicate artists.
michaelmcmillan5 replies#
I actually tested the random distribution of Spotify's shuffle functionality: http://michaelmcmillan.net
Jackim#
I appreciate the simplicity of your site but it is definitely difficult to quickly see where one post ends and another one starts.
RugnirViking2 replies#
On your website you put a source mark on the statement 'This is the same reason the Brits mistakenly assumed that the Germans had an exceptionally good aim with their V-1 flying bombs during World War II '

I'd like to read about this, do you still have the intended link?

feider#
Thinking fast & slow by D.Kahneman mentioned this same story
wodenokoto2 replies#
I have a theory that Spotify doesn't do random shuffling, but weighted shuffling, so that new items are more likely to be at the top of a shuffle (or maybe even popular items). I also believe that this will satisfy users better than true random shuffling.

About your linked post: You don't test the randomness of the shuffling, you only test if a shuffled list contain one and only of each original item.

c3534l#
Spotify officially says it's not random.
surement#
>I have a theory that Spotify doesn't do random shuffling, but weighted shuffling, so that new items are more likely to be at the top of a shuffle

Amazon Music does this and it annoys me. Just because I added something a while ago doesn't mean I want to hear it less.

lwansbrough1 reply#
Spotify's shuffling is most certainly not random. Every once in a while I get a bug where it simply shuffles through various songs from 4-5 albums and will never pick songs outside that set. Restarting the app corrects the behaviour. To me that's some level of proof, because the songs are all there. So what's the algorithm really doing?
fhood#
I get this as well, and I think it gets worse the larger the playlist. It really makes me miss itunes' shuffling algorithms.
gt565k1 reply#
As it is apparent from the comments, most people want the playlists shuffled, but after a song is played, it is taken out of the set that's to be shuffled. So a song is never repeated.

Continue this thread — 1 reply

Continue this thread — 1 more reply

Continue this thread — 15 more replies