title: How does this Code for shuffling cards work?
body: <p>I was just wondering how this code works, I'm pretty new to coding and I was wondering how it works.</p>
  <pre><code>
      for (int x = 0; x &lt; 53; x++)
      {
          int h = rand() % 52;
          int j = rand() % 52;
      
          //   Randomize/shuffle deck
          Deck[52].face = Deck[h].face;
          Deck[52].suit = Deck[h].suit;
          Deck[52].value = Deck[h].value;
      
          Deck[h].face = Deck[j].face;
          Deck[h].suit = Deck[j].suit;
          Deck[h].value = Deck[j].value;
      
          Deck[j].face = Deck[52].face;
          Deck[j].suit = Deck[52].suit;
          Deck[j].value = Deck[52].value;
      }
  
  </code></pre>