JavaScript 랜덤 수 정렬 수 랜덤 정렬 - 1~45 const candidate = Array(45).fill("").map((e, i) => i + 1) // 1~45 배열 생성 const shuffle = []; - for for (let i = candidate.length; i > 0; i--) { const index = Math.floor(Math.random() * i); // 랜덤 수 생성 const spliceArray = candidate.splice(index, 1); // 랜덤 값 배열 const value = spliceArray[0]; shuffle.push(value); } - for concat() const shuffle = () => { for (let i = 0..