JSFiddle - React, Tailwind, and code Playground
by LuckyCat
JavaScript
function randomArrNumbers (start,end){
for (var O = [], random = [], j = 0; j < end - start + 1; j++) O [j] = start + j;
while (O.length) random [random.length] = O.splice ((Math.random () * O.length), 1);
return random;
}
console.log(randomArrNumbers(1, 100));