Pick a new song randomly each time a song ends. This is the naive way to do it and can result in playing the same song twice.
Randomly shuffle the list of songs once and then go through the shuffled list in order, guaranteeing that no single song gets played a second time before all songs have been played.
The strategies are different, but I’d argue that they’re equally “random.”
I’ve got a cheap Chinese aftermarket head unit in my car that uses strategy #1, and it’s mildly infuriating.
Yeah, but all modern music platforms use a more advanced random, where it will avoid putting two different songs by the same artist in a row for example. But it’s still based on the second strategy you wrote.
This seems somewhat flawed. Lets say you have 90 songs by Vengaboys, and 10 songs by Slayer in your playlist. In order to play every song without playing Vengaboys back to back, you’d need to play Slayer 4x more often than you play Vengaboys.
There are two basic ways of doing “random” songs:
The strategies are different, but I’d argue that they’re equally “random.”
I’ve got a cheap Chinese aftermarket head unit in my car that uses strategy #1, and it’s mildly infuriating.
Yeah, but all modern music platforms use a more advanced random, where it will avoid putting two different songs by the same artist in a row for example. But it’s still based on the second strategy you wrote.
This seems somewhat flawed. Lets say you have 90 songs by Vengaboys, and 10 songs by Slayer in your playlist. In order to play every song without playing Vengaboys back to back, you’d need to play Slayer 4x more often than you play Vengaboys.
deleted by creator