let arr = []; for (let i = 0; i < n; i++) { arr.push(Math.floor(Math.random() * (start - end + 1)) + end); } return [...new Set(arr)]