title: Using LINQ to shuffle a deck
body: <p>I am  attempting to write a simple card game. In an effort to come up with a good shuffling algorithm I came across Jeff Atwood's <a href="http://www.codinghorror.com/blog/2007/12/shuffling.html">post</a> on Coding Horror.</p>
  
  <p>However When I view the contents of the object after calling the Constructor they are not shuffled.</p>
  
  <p>Here is my attempt to use Jeff's Solution:</p>
  
  <pre><code>class MainDeck : List&lt;Card&gt;
  {
     public MainDeck()
      {
          this.Add(new Card(1, "Hearts"));
          this.Add(new Card(2, "Hearts"));
          this.Add(new Card(3, "Hearts"));
          ...
  
          this.OrderBy(a =&gt; Guid.NewGuid());
      }
  }
  </code></pre>
  
  <p>here is the code for Card:</p>
  
  <pre><code>class Card
      {
          string suit;
          int value;
  
          public Card(int value, string suit)
          {
              this.value = value;
              this.suit = suit;
          }
  
          bool isFaceCard()
          {
              if (value &gt;= 11 || value == 1)
                  return true;
              else
                  return false;
          }
  
          public override string ToString()
          {
              return (value +", " + suit);
          }
      }
  </code></pre>
  
  <p>What should I change to make the shuffling work?</p>