News for hackers. Stuff that matters.
Re:Show HN: A Set of Dice That Follows the Gambler's Fallacy by weaksauce on Wednesday July 19, 2017 @05:38PM (#14808205)
I don't think what people want is random when they say that... they want intelligently mixed playlists that meet a few criteria. no back to back songs from the same artist unless the pool of songs doesn't have sufficient variability in artists, not too frequent repeating of the same song, if you have a live version of the song it should be lowered sufficiently in probability of playing when another cover/live version played. basically people want to remove repetition.
Re:Show HN: A Set of Dice That Follows the Gambler's Fallacy by rcthompson on Thursday July 20, 2017 @01:05AM (#14810127)
I think in the general case you could imagine a NxN matrix of values between 0 and 1 representing similarity between N songs. Songs on the same album would have high similarity, especially consecutive tracks on the album, and different versions of the same song (e.g. live vs. studio) would also have high similarity. Then when selecting the next song, you would weight each available song's selection probability inversely to its similarity to the last few songs.