const _getUniqueNums = (start, end, n) => { let arr=[]; for (let i = 0; i < n; i++) { let a = Math.floor(Math.random() * (end - start + 1) + start); arr.push(a) } if(Array.from(new Set(arr)).length < arr.length){ ...