2011年6月17日
摘要: 这个抽奖系统是一次性抽取完,只要输入抽取人数,系统自动抽取指定数目的名单。//中奖用户 currentLotteryNum=0;//tempUserName[currentLotteryNum-1]=userName[randomNum];//将值赋给存放中奖用户的表中去while(currentLotteryNum<setLotteryNum){isRepeat=false;Randomkd=newRandom();randomNum=kd.Next(totalCountStaff);//s随机获得个值if(tempUserName.Length>0){for(inti=0;i& 阅读全文
posted @ 2011-06-17 14:06 jackdesk 阅读(7800) 评论(0) 推荐(0) 编辑