Shuffle songs on spotify pc7/11/2023 ![]() ![]() ![]() Gambler’s fallacyĪt first we didn’t understand what the users were trying to tell us by saying that the shuffling is not random, but then we read the comments more carefully and noticed that some people don’t want the same artist playing two or three times within a short time period. And this is accomplished using the optimal number of operations and optimal amount of randomness. However, perfectly random means that the following two orders are equally likely to occur (different colors represent different artists): A side note: I think Fisher-Yates shuffle is one of the most beautiful random algorithms and it’s amazing that such complicated problem can be solved in 3 lines of code in some programming languages. Since the Spotify service launched, we used Fisher-Yates shuffle to generate a perfectly random shuffling of a playlist.
0 Comments
Leave a Reply. |