js/app.js
// picks two random cards and switches their spots 1000 times
picks two random cards and switches their spots 1000 times
picks two random cards and switches their spots 1000 times
function shuffle() {
  for (var i = 0; i < 1000; i++) {
    var deck1 = Math.floor((Math.random() * deckArray.length));
    var deck2 = Math.floor((Math.random() * deckArray.length));
    var resetDeck = deckArray[deck1];
    deckArray[deck1] = deckArray[deck2];
    deckArray[deck2] = resetDeck;
  }
}
function shuffle ( ) { for ( var i = 0 ; i < 1000 ; i ++ ) { var deck1 = Math . floor ( ( Math . random ( ) * deckArray . length ) ) ; var deck2 = Math . floor ( ( Math . random ( ) * deckArray . length ) ) ; var resetDeck = deckArray [ deck1 ] ; deckArray [ deck1 ] = deckArray [ deck2 ] ; deckArray [ deck2 ] = resetDeck ; } }
picks two random cards and switches their spots 1000 times
picks two random cards and switches their spots 1000 times