funcifyr.js
function(arr) {
        for (var i = 0; i < arr.length; i++) {
          var randIndex = Math.floor(Math.random() * arr.length);
          var temp = arr[randIndex];
          arr[randIndex] = arr[i];
          arr[i] = temp;
        }
        return arr;
      }
function(arr) {
        for (var i = 0; i < arr.length; i++) {
          var randIndex = Math.floor(Math.random() * arr.length);
          var temp = arr[randIndex];
          arr[randIndex] = arr[i];
          arr[i] = temp;
        }
        return arr;
      }
function ( arr ) { for ( var i = 0 ; i < arr . length ; i ++ ) { var randIndex = Math . floor ( Math . random ( ) * arr . length ) ; var temp = arr [ randIndex ] ; arr [ randIndex ] = arr [ i ] ; arr [ i ] = temp ; } return arr ; }
Randomly shuffles items in an array.

shuffle :: (arr) → arr

@param arr - An array to be shuffled
@returns A shuffled array
Randomly shuffles items in an array .