code: 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;
  }
docs: Randomize order of an array using Fisher-Yates shuffe