• CountVon@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    19
    ·
    3 days ago

    After thoroughly shuffling, the exact order of the deck is one of 52! (52 factorial, or 52 * 51 * 50 * … * 2 * 1) possible combinations. That is such a large number that it’s possible, even likely, that the exact ordering of your deck has never existed before and will never exist again.

  • MelodiousFunk@slrpnk.net
    link
    fedilink
    arrow-up
    3
    ·
    2 days ago

    I never learned how to properly shuffle cards that way. My hands just fail at the basic mechanics. Perhaps coincidentally, I would be mortified if something like that were done to the vast majority of the games in my collection. That ain’t no $2 Bicycle deck, mi amigo.

  • henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    9
    ·
    3 days ago

    It’s also not sufficient to randomize a deck of cards using a 32-bit seed as was once common in software.

    Indeed, even with a 64 bit seed, it is not sufficient.

  • SubArcticTundra@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    3 days ago

    I always thought riffle shuffles were super ineffective. Most of the cards remain in each others vicinity. What is a better way?

    • moody@lemmings.world
      link
      fedilink
      English
      arrow-up
      24
      ·
      3 days ago

      You’re essentially splitting the deck and recombining the two halves imperfectly multiple times in a row. Like if a riffle was perfect, you would get the cards from both halves equally distributed, but nobody can do it perfectly, so they actually end up properly randomized. After 7 imperfect riffles, the entire deck is unpredictable.

      After 4 perfect ABAB riffle shuffles, you would end up with the same order as you started with. If your shuffles are imperfect, your deck becomes more random every time.