const _getUniqueNums = (start, end, n) => { // 补全代码 let arrMath = []; for (let i = 0; i <= n; i++) { if (arrMath.length <= n) { let temp = Math.floor(Math.random() * (start - end)) + end; if (arrMath.indexOf(temp) == -1) { arrMath[arrMath.length] = temp; temp = ''; } } } return arrMath; }