• 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.