Hacker News new | ask | show | jobs
by jonathanstrange 139 days ago
If the list of songs is random shuffled, you can only hear the same song twice if there is a duplicate or if you've cycled through the whole list. That's why you shuffle lists instead of randomly selecting list elements.