Hacker News new | ask | show | jobs
by WalterBright 18 days ago
You are correct, and that matters if it is a small number of music files. If it is a large number of files, the difference in user experience is irrelevant. But not needing to remember what was already played keeps the player memory footprint small.
1 comments

Except "small" is very large because this runs face first into the birthday problem so the average distance between duplicates grows to the square root of the number of files.

Hell even actual shuffling is not necessarily enough to "feel" right for human psyche, famously despite the ipod doing actual shuffling[0] users complained because tracks of the same artist / album could still cluster over shuffling an entire library, so they implemented "smart shuffle" to skew the shuffle and break up clusters. An other option is to weight the random pick by how far back a track was last played, or how little it's been played overall. This has the advantage of favouring less played tracks across listening sessions.

[0] and frankly if the ipod was able to do actual shuffling back in 2005 the memory footprint is just a lazy excuse

Isn't this just over-engineering it? It's not like one is gambling with money on what song is played next.
> Isn't this just over-engineering it?

When users are complaining that your shuffle is hot garbage, it's just engineering.

> It's not like one is gambling with money on what song is played next.

Which... is rather the point? If one was doing that, your scheme would be fine.