执手到白头*/1
2019/1/8 10:01:37
/*
前端写中奖随机数
根据自己需求随意改
*/
function randomLuckyArr() {
Obj.luckyResult = [];
for (var i = 0; i < Obj.luckyNum; i++) {
var random = Math.floor(Math.random() * personArray.length);
if (Obj.luckyResult.indexOf(random) == -1) {
Obj.luckyResult.push(random)
} else {
i--;
}
}
}