im doing an IA on how spotify shuffle works
but first Im beginning but showing how a true random shuffle would work (spotify isnt true random)
https://ibb.co/zVqtfc1Z
is there any obvious mistakes in my math?
im doing an IA on how spotify shuffle works
but first Im beginning but showing how a true random shuffle would work (spotify isnt true random)
https://ibb.co/zVqtfc1Z
is there any obvious mistakes in my math?
Are you sure you have smart shuffle turned off
Just turn it off and on again
There you go, true shuffle
I just did more work than all the spotify developers
Laundry [#2]Are you sure you have smart shuffle turned off
even turned off spotify shuffle is based on recent activity and not actual randomness
Laundry [#2]Are you sure you have smart shuffle turned off
spotify shuffle (even the normal) is percieved randomness
https://engineering.atspotify.com/2025/11/shuffle-making-random-feel-more-human
Laundry [#2]Are you sure you have smart shuffle turned off
Also ya ur math is wrong, cuz ur using shuffle and not skip, collisions can happen, so 100/717 is wrong
Laundry [#6]Also ya ur math is wrong, cuz ur using shuffle and not skip, collisions can happen, so 100/717 is wrong
the wording isnt clear i think
i mean like my playlist is 717 songs
and i shuffled 100 (assuming true random shuffle)
whats the chance of each song appearing in those 100
9wntr [#7]the wording isnt clear i think
i mean like my playlist is 717 songs
and i shuffled 100 (assuming true random shuffle)
whats the chance of each song appearing in those 100
6/7 chance
9wntr [#8]its a school project lol
Weren't you a math tutor 81wntr
Or is that side hustle
9wntr [#7]the wording isnt clear i think
i mean like my playlist is 717 songs
and i shuffled 100 (assuming true random shuffle)
whats the chance of each song appearing in those 100
No, that’s assuming every song that gets played can’t repeat
If you shuffle 100 times, you’re bound to get the same song twice, so the probability for getting any given song isn’t 100/717 because 100 unique songs aren’t played.
tv0rusluke [#10]Weren't you a math tutor 81wntr
Or is that side hustle
I tutor the Math AI sl ppl /myp ppl
That’s a lower level course
Laundry [#11]No, that’s assuming every song that gets played can’t repeat
If you shuffle 100 times, you’re bound to get the same song twice, so the probability for getting any given song isn’t 100/717 because 100 unique songs aren’t played.
Oh
How would I fix it to account for repeats
the last line assumes you are choosing with replacement i.e. you can get the same song twice in a row
P = k!(n-r)!/n!(k-r)!
9wntr [#12]I tutor the Math AI sl ppl /myp ppl
That’s a lower level course
Appreciate the hustle for bag
sophiewatchedvct [#14]the last line assumes you are choosing with replacement i.e. you can get the same song twice in a row
well in a truly random (not perceived random) set
you should be able to get the same song twice no?
9wntr [#17]well in a truly random (not perceived random) set
you should be able to get the same song twice no?
i'm just saying that your math assumes the chance of getting the same song twice in a row ~ my idea of a playlist shuffle is that it plays all 717 songs in a predetermined order one-by-one
9wntr [#17]well in a truly random (not perceived random) set
you should be able to get the same song twice no?
I’m not sure how Spotify works, but your work allows the same song to be played twice
9wntr [#17]well in a truly random (not perceived random) set
you should be able to get the same song twice no?
Is bro referring to quantum randomness
sophiewatchedvct [#18]i'm just saying that your math assumes the chance of getting the same song twice in a row ~ my idea of a playlist shuffle is that it plays all 717 songs in a predetermined order one-by-one
oh i c
thats how it actually works (which ill attempt to explain later in the paper)
this is just a theoretical assuming songs are randomly picked from a pile each time
PP12123213123 [#19]I’m not sure how Spotify works, but your work allows the same song to be played twice
spotify is perceived randomness
https://engineering.atspotify.com/2025/11/shuffle-making-random-feel-more-human
it isnt random at all it just pretends to b
tv0rusluke [#20]Is bro referring to quantum randomness
i believe we're expected all outcomes to be equally likely so yes we'd need quantum randomness as opposed to pseudorandomness
tv0rusluke [#20]Is bro referring to quantum randomness
kinda
this is a theory
it isnt supposed to be applicable to a real platform (cus ppl would hate it)
9wntr [#21]oh i c
thats how it actually works (which ill attempt to explain later in the paper)
this is just a theoretical assuming songs are randomly picked from a pile each time
your formula will use a lot of choose functions and a lot of factorials then
sophiewatchedvct [#25]your formula will use a lot of choose functions and a lot of factorials then
i c
thanks for the feedback
https://ibb.co/SDVwf3V1
1−(717/716)^100≈0.131
is ts a more accurate 1 for the shuffle example?
9wntr [#27]https://ibb.co/SDVwf3V1
1−(717/716)^100≈0.131is ts a more accurate 1 for the shuffle example?
it depends
if you reshuffle after every song, yes
if you don't reshuffle after every song, no
9wntr [#27]https://ibb.co/SDVwf3V1
1−(717/716)^100≈0.131is ts a more accurate 1 for the shuffle example?
yes
sophiewatchedvct [#28]it depends
if you reshuffle after every song, yes
if you don't reshuffle after every song, no
i am reshuffling yeah
9wntr [#30]i am reshuffling yeah
then yes that is the correct equation
PP12123213123 [#29]yes
Yippee
tv0rusluke [#9]6/7 chance
What did you just say-
Someone correct me if I'm wrong but for a specific song, you could just model this as a binomial distribution and taking n as the number of songs played, p=1/(total songs in playlist). Since songs can be played more than once you want the probability P(X>0) which is 1-(1-p)^n in your example that'd be:
1 - (1-1/717)^(100) ≈ 0.13