this post was submitted on 06 Nov 2023
470 points (94.0% liked)
memes
10402 readers
1800 users here now
Community rules
1. Be civil
No trolling, bigotry or other insulting / annoying behaviour
2. No politics
This is non-politics community. For political memes please go to !politicalmemes@lemmy.world
3. No recent reposts
Check for reposts when posting a meme, you can only repost after 1 month
4. No bots
No bots without the express approval of the mods or the admins
5. No Spam/Ads
No advertisements or spam. This is an instance rule and the only way to live.
Sister communities
- !tenforward@lemmy.world : Star Trek memes, chat and shitposts
- !lemmyshitpost@lemmy.world : Lemmy Shitposts, anything and everything goes.
- !linuxmemes@lemmy.world : Linux themed memes
- !comicstrips@lemmy.world : for those who love comic stories.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You can definitely make a truly random shuffle that doesn’t play the same song twice within a gap of ten songs.
You just make a list of all the song IDs that aren’t in the last ten played, and grab an item at a random index.
Randomness is a texture not a shape. Dice are random despite only being able to present six outcomes.
But then it is not truly random, that is the point.
The same song 10 times in a row also has a chance of happening in a truly random list.
Random pick without replacement is no less random than random pick with replacement. You just have a continuously smaller pool to pick from.
It's absolutely possible to have better randomness/shuffle without repeating songs so often.
there exist other random distributions than the uniform distribution
You’re thinking of a random sequence. We’re talking about shuffling according to a random seed.