3 ms·
Not sure this works perfectly for playlists, because it's still possible for it to roll the same thing twice in a row - it's just less likely. Long ago I asked
by jameshart 9y ago
Not sure this works perfectly for playlists, because it's still possible for it to roll the same thing twice in a row - it's just less likely.
Long ago I asked this related question on stackoverflow: https://stackoverflow.com/questions/5467174/how-to-implement-a-repeating-shuffle-thats-random-but-not-too-random https://stackoverflow.com/questions/5467174/how-to-implement... - it surprises me still that nobody has identified a classic algorithm for solving exactly this problem.