• CountVon@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    18 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.

    • optissima@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      In the future you can denote your factorial with 51! through single inline backticks for clairity!

    • CrayonRosary@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      17 days ago

      True, but due to the Birthday Paradox, the chance of any two people shuffling a deck the same way at some point is a lot higher than you might think.

  • SubArcticTundra@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    17 days ago

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

    • Melatonin@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      It’s the best way, period. Even as inefficient as it may seem, inexpertly done, seven shuffles and you’re good.

    • moody@lemmings.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      17 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.

  • henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    0
    ·
    17 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.

  • MelodiousFunk@slrpnk.net
    link
    fedilink
    arrow-up
    0
    ·
    17 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.