<script>
"use strict"
let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14];
function shuffleArray() {
let array = this.slice(0);
for (let i = array.length - 1; i > 0; i--) {
let j = Math.random() * i|0;
[array[i], array[j]] = [array[j], array[i]];
}
return array;
}
function makeMultiArr(num, arr) {
return Array.from({length : num}, shuffleArray, arr)
}
document.write(JSON.stringify(makeMultiArr(5, arr)))
</script>