• MeatsOfRage@lemmy.world
    link
    fedilink
    arrow-up
    154
    arrow-down
    2
    ·
    edit-2
    1 year ago

    Reminds me of the old iTunes shuffle thing. When it was first introduced it was actually random but too many people complained it was broken when they heard the same artist multiple times in a row so they rewrote it as a shuffle algorithm that would feel more random than actual random.

    Just goes to show, we don’t actually want random, we want variety.

    • grue@lemmy.world
      link
      fedilink
      English
      arrow-up
      45
      arrow-down
      3
      ·
      edit-2
      1 year ago

      There are two basic ways of doing “random” songs:

      1. Pick a new song randomly each time a song ends. This is the naive way to do it and can result in playing the same song twice.
      2. Randomly shuffle the list of songs once and then go through the shuffled list in order, guaranteeing that no single song gets played a second time before all songs have been played.

      The strategies are different, but I’d argue that they’re equally “random.”

      I’ve got a cheap Chinese aftermarket head unit in my car that uses strategy #1, and it’s mildly infuriating.

      • Bumblefumble@lemm.ee
        link
        fedilink
        arrow-up
        22
        ·
        1 year ago

        Yeah, but all modern music platforms use a more advanced random, where it will avoid putting two different songs by the same artist in a row for example. But it’s still based on the second strategy you wrote.

        • Longpork_afficianado@lemmy.nz
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          1 year ago

          This seems somewhat flawed. Lets say you have 90 songs by Vengaboys, and 10 songs by Slayer in your playlist. In order to play every song without playing Vengaboys back to back, you’d need to play Slayer 4x more often than you play Vengaboys.

    • whaleross@lemmy.world
      link
      fedilink
      arrow-up
      26
      ·
      edit-2
      1 year ago

      Reminds me of an article I read long time ago of the need in computer games to tweak percentage chance of success and failure, because if it is true as presented 80% success rate players think it should be “almost always” and complain when one fifth of attempts fail.

      • aeronmelon@lemm.ee
        link
        fedilink
        arrow-up
        21
        ·
        1 year ago

        Me when the weather app says 80% chance of rain, so I go everywhere with an umbrella but it’s overcast all day long. Then it says 15% and I get rained on while walking to the store.

        I’m never going to learn.

        • Radio_717@lemmy.world
          link
          fedilink
          arrow-up
          28
          arrow-down
          2
          ·
          edit-2
          1 year ago

          I found out recently that those percentages actually mean 80% of the local AREA would have rain and 20% would not. Meaning if there is a chance of rain in your town at all it’s likely raining somewhere even if it’s just a tiny drop or two.

          So if you don’t want to get wet at all bring an umbrella if the chance is over 0%.

          Source: was talking to a meteorologist about this exact thing.

        • CobblerScholar@lemmy.world
          link
          fedilink
          arrow-up
          13
          ·
          1 year ago

          Well rain chance is a compound probability it’s the probability that it will or will not rain multiplied by the percent of land hit with rain. Like if 50% of an area will be hit and there’s an 80% chance it will rain the number the weather Channel will give you is 40%

        • Karyoplasma@discuss.tchncs.de
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          In gen 1 that would be only Swift, Bide and self-targeting status moves because every 100% accuracy move can miss due to a bug (1/256). Fun fact: you would actually be able to beat the game with these 2 moves because Bide, in gen 1 only, bypasses Ghost’s immunity to Normal moves.

            • Karyoplasma@discuss.tchncs.de
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              Mechanically, the remakes are objectively the better games and they also offer more gameplay-wise with new moves, more logical movesets, abilities, nature, actual EV system. The next big improvement was the physical/special split in Gen5.

              I still play the gen1 games from time to time tho. They are hilarious.

      • teft@startrek.website
        link
        fedilink
        arrow-up
        7
        arrow-down
        1
        ·
        1 year ago

        It’s a big complaint for new players to Baldurs gate 3. People think a 95% chance to hit won’t fail but it does sometimes. Just the luck of the dice.

        • ares35@kbin.social
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          ‘drop rates’ are the same thing. 10% chance doesn’t mean you will see it drop if you run a mission or defeat that boss ten times.

          • LordOfTheChia@lemmy.world
            link
            fedilink
            arrow-up
            5
            ·
            edit-2
            1 year ago

            Or thinking that if you didn’t get the drop in 9 attempts, you’re practically guaranteed it in the next attempt.

            Nope, still 1 in 10 chance.

            In most simple written RNG calculations, past failures do not guarantee future success.

            I believe some games will keep a tally of failures and award a successful loot after x failures to avoid frustrating players.

              • teft@startrek.website
                link
                fedilink
                arrow-up
                3
                ·
                edit-2
                1 year ago

                Don’t use it though. The karmic dice system works for enemies too. So if you enable the system your rolls will fail less often but so will the enemy’s dice rolls. With karmic dice on I find the enemies crit me more. Especially on tactician mode.

    • LordOfTheChia@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      Same thing happened with the iPhone shuffle. People complained it wasn’t “random enough” and would often end up calling members of the same family and/or household in a row. So they rewrote that algorithm too.

    • aeronmelon@lemm.ee
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      Those were the best days of Apple. Steve Jobs literally titled the feature “Less Random”.

    • Fades@lemmy.world
      link
      fedilink
      arrow-up
      10
      arrow-down
      5
      ·
      edit-2
      1 year ago

      It’s not just about not wanting random, but randomness is actually very hard to create. Every random number is actual pseudo random

      Some basic breakdowns of this concept:

      https://slate.com/technology/2022/06/bridle-ways-of-being-excerpt-computer-randomness.html

      The problem modern computers have with randomness is that it doesn’t make mathematical sense. You can’t program a computer to produce true randomness—wherein no element has any consistent, rule-based relationship to any other element—because then it wouldn’t be random. There would always be some underlying structure to the randomness, some mathematics of its generation, which would allow you to reverse-engineer and re-create it. Ergo: not random.

      Kid friendly version:

      https://stackoverflow.com/a/633085

      • Turun@feddit.de
        link
        fedilink
        arrow-up
        10
        ·
        edit-2
        1 year ago

        Every random number is actual pseudo random

        No, there are true random sources in a computer. Any outside input can be used to generate randomness. Mostly user input, but temperature fluctuations can work as well, if the sensor precision is high enough.

        Also the argument is only correct on a technical level for PRNGs. Choose a 65535 sided dice and make the instructions a thousand steps long and you’ll have a pretty hard time to deduce the instructions from the generated numbers. Not to mention how long the list of numbers needs to be for the attacker to start guessing.

        • Honytawk@lemmy.zip
          link
          fedilink
          arrow-up
          6
          arrow-down
          5
          ·
          1 year ago

          It is all based upon calculations with known numbers.

          A computer can’t create a number out of nothing.

          That is why Cloudflare uses lava lamps to generate random numbers for their cryptography. And even those aren’t fully random.

          • vrighter@discuss.tchncs.de
            link
            fedilink
            arrow-up
            7
            ·
            1 year ago

            Modern cpus actually do have trng hardware built in. So yes, modern computers can create numbers out of nothing, because they have specialized hardware to do so

          • FooBarrington@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            1 year ago

            No, CloudFlare doesn’t use lava lamps to generate random numbers, that was a marketing stunt. Using a camera in a completely dark room is a better source of entropy than one pointed at lava lamps.

            Also, nobody is saying that computers create a number out of nothing. The environment is a great source of entropy (temperature fluctuations, user inputs and so on) which are then expanded into a larger amount of entropy through CSPRNGs.

            • Karyoplasma@discuss.tchncs.de
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              Using a camera in a completely dark room is a better source of entropy than one pointed at lava lamps.

              Why is that? Naturally occurring or manufacturing-related impurities in the optical chip?

              • FooBarrington@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                1 year ago

                All digital cameras are imperfect - there is always a bit of noise, but usually it doesn’t come through since your scene is bright enough to make small amounts of noise imperceptible. In a completely dark room the camera still tries to get data from the photo sensor, but the noise (created by temperature fluctuations, imperfections in the chip itself and so on) is all you get. You may theoretically be able to predict the noise on short time scales, but it’s a chaotic system.

      • Asifall@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        1 year ago

        For the purpose of shuffling a playlist pseudo random is indistinguishable from truly random in all the ways that matter anyway.

      • Ultraviolet@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        1 year ago

        This is an irrelevant distinction for any case where you aren’t worried about someone reverse engineering the algorithm and seed by logging output. Any half decent PRNG’s output will be statistically indistinguishable from true randomness.

  • BURN@lemmy.world
    link
    fedilink
    arrow-up
    44
    ·
    1 year ago

    And since they removed my playlist radio, song discoverability has gone down so much. They just keep playing me the same damn music when I want related stuff.

    • Deuces@lemmy.world
      link
      fedilink
      arrow-up
      26
      ·
      1 year ago

      For the life of me, I cannot figure out why they got rid of playlist radio. It makes Spotify so much worse and I can’t imagine it saves them any money

      • BURN@lemmy.world
        link
        fedilink
        arrow-up
        12
        ·
        1 year ago

        Probably some over complicated statistical model that will eek out cents more revenue per user.

        It’s one of the worst changes they’ve made and it’s legitimately been making me take another look at all of their competitors.

    • DudeDudenson@lemmings.world
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      For the same reason all the streaming sites decided to gimp their discoverability and just force you into whatever the algorithm thinks you need.

      Some middle manager wanted to justify their bonus so they jumped in the current fad

      • tslnox@reddthat.com
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I don’t use any streaming service, instead YouTube Vanced or NewPipe when I want to make a queue… But I absolutely hate that the algorithm chooses whatever it wants no matter what you play, and it’s just randomly chosen out of one of the few songs I played before. Also I sometimes play the one+ hour long compilations either to sleep (Nemo’s Dreamscapes) or fantasy music and YouTube decided that auto play will always choose one of those after playing anything (rock, metal, country, folk, name it, it doesn’t matter)

    • Stamets [Mirror]@startrek.websiteOP
      link
      fedilink
      arrow-up
      41
      arrow-down
      12
      ·
      edit-2
      1 year ago

      I didn’t hear it anywhere, its personal experience. Spotify straight up isn’t shuffling any of my older liked music. Everytime I hit shuffle it always ends up localized around recently saved music and it never changes. Moreover, that’s a blogpost from a decade ago. Spotify changes stuff constantly. I seriously doubt that is the same algorithm they’re using now. ESPECIALLY considering they’ve introduced ‘Smart Shuffle’ which doesn’t only shuffle music you have saved but adds completely new music into the mix as well. That and Spotifys overall quality control has dropped drastically in the past decade.

      • fishos@lemmy.world
        link
        fedilink
        arrow-up
        20
        arrow-down
        1
        ·
        1 year ago

        While I can agree with others that it might not be that strict and they may get more variety, from personal experience, my 700+ song playlist tends to focus on a handful of songs. Blue - Eiffel 65 gets a CRAZY amount of playtime for some reason. It’s a running joke with my carpool that it’s my car’s theme song. I can sometimes skip it 2-3 times on my drive to work. And some songs seem to never come up. I’ve been having some better luck with the AI DJ lately, although it will throw in an entire chunk of songs I don’t even care about as basically ads.

      • nyctre@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        edit-2
        1 year ago

        I’ve got thousands of liked songs and I get a nice variety of old and recent stuff. From last month to as old as 8 years ago. Sometimes I get too many songs from the same band, sure, but when you’ve got 50-100 songs from the same band liked, that’s bound to happen

        • emeralddawn45@discuss.tchncs.de
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          Yeah I’ve got like 8000 and there have been times when it feels like it’s focusing on newly added stuff, but older stuff definitely does pop up and I feel like it’s a pretty good mix. 90% of the time I’ve just got my whole library on shuffle unless I’m actively looking for new stuff to add.

    • dangblingus@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Yeah okay, so they use the Fisher Yates algorithm. Then how the fuck in my playlist of 1000 songs am I CONSTANTLY getting hit with multiple songs by the same artist? Once in a while, okay, that’s statistically likely, but not all the time, and not every time.

      • snowe@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        how many songs by the same artist do you have in that playlist? Your comments here don’t make sense. Repeating the same artist doesn’t make something not random and definitely doesn’t make it “the most 100 recently saved songs”. In fact repeating the same artist makes it quite likely that it is random as randomness is frequently misinterpreted as non-random if you would have read the article I linked you would understand that.

  • shadejinx@infosec.pub
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 year ago

    The shuffle button does it’s thing every time you activate it. I believe, anecdotally, that it uses whatever song is playing or selected as a seed to build the random queue.

    Try this, select a song and press Shuffle. When it gets to a song you don’t want to hear, skip to a song you want to hear and toggle Shuffle off and on.

    • HurlingDurling@lemm.ee
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Good to know, but it would be even better if it just shuffled the playlist you are listening to instead amaright?

  • intensely_human@lemm.ee
    link
    fedilink
    arrow-up
    28
    arrow-down
    18
    ·
    1 year ago

    But you can make it actually random by doing this:

    • Tap your profile picture
    • Tap settings
    • Tap Playback
    • Toggle the “Automix” switch to off

    Now you have truly random shuffle

    • Hildegarde@lemmy.world
      link
      fedilink
      arrow-up
      18
      arrow-down
      8
      ·
      1 year ago

      I doubt it. True random shuffle play is rare, because humans don’t understand the chaos of true random generation, we see patterns in it and assume it’s not random.

      A truly random shuffle can play the same song twice. A truly random shuffle can play multiple songs from the same artist in a row. In the fullness of time all of these will happen with a true random shuffle.

      Nothing does that these days. Nearly everything “random” is algorithmically engineered to be less random so it feels more random to humans.

      • intensely_human@lemm.ee
        link
        fedilink
        arrow-up
        12
        arrow-down
        3
        ·
        1 year ago

        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.

        • Honytawk@lemmy.zip
          link
          fedilink
          arrow-up
          3
          arrow-down
          9
          ·
          edit-2
          1 year ago

          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.

          • Eranziel@lemmy.world
            link
            fedilink
            arrow-up
            8
            ·
            1 year ago

            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.

      • zaph@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        1 year ago

        A truly random shuffle can play the same song twice. A truly random shuffle can play multiple songs from the same artist in a row. In the fullness of time all of these will happen with a true random shuffle. Nothing does that these days.

        Tidal does and it’s annoying af.

      • HubertManne@kbin.social
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        now I wish for a more nuanced configed shuffle because I totally love having a few songs from the same artist back to back but not the same one.

      • ElderWendigo@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        A truly random walk through a playlist might choose the same song twice in a row. A truly random shuffle would only have each entry appear once and you’d have to play past the end of the shuffle to hear a song repeat.

  • nottheengineer@feddit.de
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    Shuffle uses a limited list that rarely gets updated, but not just the 100 most recent ones. You can force it refresh by turning off shuffle and force closing the app.

  • Saint of Illusion@lemm.ee
    link
    fedilink
    arrow-up
    11
    arrow-down
    4
    ·
    1 year ago

    Hit the shuffle button twice to turn on Smart Shuffle. It will throw some brand new songs into the playlist shuffle.

      • Saint of Illusion@lemm.ee
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        I’m on android. I just confirmed you can’t do it with an album but instead with playlists. Add a song to a playlist, hit shuffle, then hit shuffle again and a little star should appear in the shuffle icon.

        • hdgdlfiuebdtus@feddit.de
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Only works on self created Playlists, not on playlists created from spotify like “Discover weekly”. The first time, you get a little popup which explains it.

    • Heisenburner@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      1 year ago

      I’ve been listening to music from the 60s almost exclusively on spotify this year. The algorithm is hell bent on me listening to the band “The Smoke”. I really don’t think a one hit wonder band that broke up in 1976 would be paying to have their music pushed so hard like that.

  • ratson@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    On the desktop spicetify solves this with the shuffle+ plugin. On mobile you can browse to a file in a playlist and start from there instead of shuffling the playlist. Turning off Automix also helps.

    • Pyr_Pressure@lemmy.ca
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      I specifically use shuffle on my favourite list when I get tired of the music rut I’m in and want to listen to the shit I listened to 5-10 years ago

      • kameecoding@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        there was that meme about adding everything to one playlist a few days back, that’s mel, lol, I don’t even know thr number of songs on the Playlist, it’s 112 hours long at the moment.

  • PrivateNoob@sopuli.xyz
    link
    fedilink
    arrow-up
    14
    arrow-down
    17
    ·
    1 year ago

    Technically right. Computer can’t do actually random calculations, instead researchers have made pseudo random functions, which similarly behaves as a truly random function would.

    • Fades@lemmy.world
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      1 year ago

      Yeah because that’s reasonable… give me a fuck break

      How many times you gonna sit there thumbing down tracks when listening to random? What if you actually like the song?

      This ain’t a solution