code: function fisherYates(arr){
      var i = arr.length;
      if(i === 0)
        return false;
      while(--i){
         var j = Math.floor(random() * (i + 1));
         var tempi = arr[i];
         var tempj = arr[j];
         arr[i] = tempj;
         arr[j] = tempi;
      }
    }
docs: array shuffling algorithm: http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle