• @intensely_human@lemm.ee
    link
    fedilink
    128 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
      3
      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
        link
        fedilink
        88 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.