JSFiddle - React, Tailwind, and code Playground
by 1eddy87
JavaScript
let arr = []
while(arr.length < 25){
let r = Math.floor(Math.random()*25) + 1;
if(arr.indexOf(r) === -1) arr.push(r);
}
console.log(arr.sort());
by 1eddy87
let arr = []
while(arr.length < 25){
let r = Math.floor(Math.random()*25) + 1;
if(arr.indexOf(r) === -1) arr.push(r);
}
console.log(arr.sort());