• intensely_human@lemm.ee
    cake
    link
    fedilink
    arrow-up
    10
    arrow-down
    3
    ·
    8 months 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
      7
      ·
      edit-2
      8 months 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
        cake
        link
        fedilink
        arrow-up
        6
        ·
        8 months 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.