code: function shuffleArray(arr) {
      for (var j, x, i = arr.length; i;
        j = Math.floor(Math.random() * i),
        x = arr[--i], arr[i] = arr[j],
        arr[j] = x) {}
      return arr;
    }
docs: Based on http://jsfromhell.com/array/shuffle