const _getUniqueNums = (start,end,n) => {
// 补全代码
let ary = [];
const random = () => {
if (ary.length === n) {
return ary;
} else {
const dt = parseInt((Math.random() + (start / 10)) * end);
if (!ary.includes(dt)) {
ary.push(dt);
}
return random();
}
}
return random();
}



京公网安备 11010502036488号