lib/dataset.js
function randomizeArray(array) {
  let i = array.length;
  while (i) {
    let j = Math.floor(Math.random() * i--);
    [array[i], array[j]] = [array[j], array[i]];
  }
  return array;
}
function randomizeArray(array) {
  let i = array.length;
  while (i) {
    let j = Math.floor(Math.random() * i--);
    [array[i], array[j]] = [array[j], array[i]];
  }
  return array;
}
function randomizeArray ( array ) { let i = array . length ; while ( i ) { let j = Math . floor ( Math . random ( ) * i -- ) ; [ array [ i ] , array [ j ] ] = [ array [ j ] , array [ i ] ] ; } return array ; }
Randomize order of an array using Fisher-Yates shuffe
Randomize order of an array using Fisher - Yates shuffe