title: How can I create a while loop with many conditions in javascript?
body: <p>I'm trying to create a poker program that will generate a hand of 5 random cards. One problem that I've run into is that the program will occasionally generate the same card twice. </p>
  
  <p>THe best way I've thought of to fix this would be to implement a while loop that looks like this. </p>
  
  <pre><code>while (randFace == randFace2 &amp;&amp; randSuit == randSuit2) || (randFace2 == randFace3 &amp;&amp; randSuit2 == randSuit3) { 
  
  randSuit2 = Math.round(Math.random()*3);                    
  randFace2 = Math.round(Math.random()*13);   
  
  }
  </code></pre>
  
  <p>This breaks the syntax of a while loop though and refuses to run.</p>
  
  <p>Is there any way to create a while loop similar to the one above with many complex conditions... only one that's syntactically valid? </p>
  
  <p>Thanks!             </p>