title: Javascript- Lodash shuffle vs. Math.Random()
body: <p>I'm in the process of coding a simple BlackJack game in Javascript.  So far, I have an array like this: </p>
  
  <pre><code>var deckArray = [ "card1", "card2",...,"card52" ]
  </code></pre>
  
  <p>I have a "deal" function set up like this: </p>
  
  <pre><code>var deal = function(){
     var card = Math.floor(Math.random() * deckArray.length);
     return deckArray.splice(card,1)[0];
  };
  </code></pre>
  
  <p>Since I'm already using Math.random to randomly choose from the deckArray, would it be redundant for me to incorporate a "shuffle" function with Lodash like this?</p>
  
  <pre><code>var shuffle = function(){
    deckArray = _.shuffle(deckNames);
  };
  </code></pre>