function shuffle(arr){ var newArr = []; while (arr.length){ var randomIndex = Math.floor(Math.random() * arr.length); newArr.push(arr.splice(randomIndex,1)[0]); } return newArr; }
function shuffle(arr){ var newArr = []; while (arr.length){ var randomIndex = Math.floor(Math.random() * arr.length); newArr.push(arr.splice(randomIndex,1)[0]); } return newArr; }