A great application for this is in randomizing playlists. My friends, who are also CS grads and should know better, have often complained that their MP3 players, CD carousels, etc play the same music too often claiming that the random is broken, when a song repeating in a short period of time or other songs never playing is what you would expect from a truly random selection. Using this algorithm, you'd be sure to he…
Using the power of 2 idea that was recently posted here. Choose two random songs and play the one that was least recently played.
Show HN: A Set of Dice That Follows the Gambler's Fallacy
121–130 of 243 posts
Re: Show HN: A Set of Dice That Follows the Gambler's Fallacy
#122Earlier quoted context omitted.
Many music players have done this for a long time. In fact I believe that's part of the reason why they refer to that function as "shuffle" rather than "random"
Shuffle is too far the other way though, you don't get any duplicates until you've been through the whole playlist. 'Random' was better, especially when there were players that would play "random album" which was great. You're right that shuffle has been the standard for a long time, the last actual "random" for singles I remember was napster back when it was popular.
Re: Show HN: A Set of Dice That Follows the Gambler's Fallacy
#123Earlier quoted context omitted.
Many music players have done this for a long time. In fact I believe that's part of the reason why they refer to that function as "shuffle" rather than "random"
But even a pure shuffle isn't enough, since you're likely to get the same artist many times in a row, which bothers people.
When I was writing my in car entertainment system (it's not as good as it sounds!) the first metric that was shuffled was the artist, followed by weightings for albums.
Re: Show HN: A Set of Dice That Follows the Gambler's Fallacy
#124I often use google "flip a coin"[1] for stupid things and the other day I was wondering why almost every single time it came up heads. I started to wonder if there was a browser rng problem or the code was crazy etc. [1] https://www.google.com/search?q=google+flip+a+coin
Re: Show HN: A Set of Dice That Follows the Gambler's Fallacy
#125I wonder if this could be / has been applied to loot tables in video games in order to keep the player interested in playing. I've designed a few loot tables and the Gambler's Fallacy is a criticism I often have to deal with when people don't understand why a given item hasn't dropped despite them having killed a mob enough times to statistically warrant it.
http://monsterhunter.wikia.com/wiki/Monster_Hunter_Wiki:Mons...
the studio has denied the existence of any such mechanism.
Re: Show HN: A Set of Dice That Follows the Gambler's Fallacy
#126A great application for this is in randomizing playlists. My friends, who are also CS grads and should know better, have often complained that their MP3 players, CD carousels, etc play the same music too often claiming that the random is broken, when a song repeating in a short period of time or other songs never playing is what you would expect from a truly random selection. Using this algorithm, you'd be sure to he…
A simpler way that's guaranteed to not repeat a song till the entire set has been played is: Assuming you have N songs, pick a prime P such that N is not divisible by P. Then pick a random index I (0 Another method is to pick a random key K and sort the entries of the playlist based on HMAC(SONG, K) (where SONG is the name or other identifier of the song). This has a number of interesting properties. For starters the…
Re: Show HN: A Set of Dice That Follows the Gambler's Fallacy
#127At first I was confused, because statistical models that aren't temporally independent are very common. But it's very clear from the comments that having dice that aren't independent between rolls is incredibly in demand :o, and having the right words to google can be tricky. (I feel like there's an important lesson there)
Re: Show HN: A Set of Dice That Follows the Gambler's Fallacy
#128A great application for this is in randomizing playlists. My friends, who are also CS grads and should know better, have often complained that their MP3 players, CD carousels, etc play the same music too often claiming that the random is broken, when a song repeating in a short period of time or other songs never playing is what you would expect from a truly random selection. Using this algorithm, you'd be sure to he…
I had a few issues with Spotify doing this. I even saw a post where an engineer claimed it was all psychological, but I was definitely getting repeats when I had queued up a large amount of music (e.g. over 40 hours.) I think they only shuffle a certain percentage of the playlist and forget which songs have already been played after a while. I manually shuffle some playlists now. One nice thing about the desktop clie…
One, if I remember somewhat correctly, was that if the player was stopped/shutdown, it forgot the shuffle seed. This would essentially lead to a reshuffle, which would cause duplicate songs for songs played before the unintended reseeding.
Re: Show HN: A Set of Dice That Follows the Gambler's Fallacy
#129Earlier quoted context omitted.
> Theoretically all physical processes are predictable If you count a radioactive decay event as a physical process, then this is not so.
I don’t. Radioactive decay is practically the very definition of the quantum effects I mentioned.
I would go the other route. Nothing can be predicted, except statistically.
Re: Show HN: A Set of Dice That Follows the Gambler's Fallacy
#130There's a probability model called the Pólya urn where you imagine an urns containing numbered balls (colored balls in a typical example, but to draw the comparison with dice we can say they're numbered 1-6), and every time you draw a ball of a certain color, you put back more balls according to some rule. A few probability distributions can be expressed in terms of a Pólya urn, see https://en.wikipedia.org/wiki/P%C3…
Covering the plane randomly but without clusters is actually quite useful in simulations. The "random" numbers that do that are often call "low-discrepancy sequence".