Rough calculation of the probability of drawing tickets for League of Legends S10

Insert picture description hereAs of 2020-10-14-12:16, 2.87 million people have participated in the lottery, drawing 6,312 qualifications for free.
…Although I wanted to go to the lottery, but the greater the hope, the greater the disappointment. In order to let myself realize how little hope is, I took a lunch break at work and wrote a rookie JS to make myself give up. Calculated according to the probability of 2 out of 1,000 for a rough 3 million people to draw 6000 qualifications:


```javascript
for(i=0;;i++){var num=Math.floor(Math.random()*500+1);
if(num==1) {alert("经过"+i+"次抽奖,你抽到了决赛观赛资格");break;} else continue;}

After testing, it is a fantasy to want to draw at one time. I completely give up 2333. If I really win, I will be a surprise.
Insert picture description here

Guess you like

Origin blog.csdn.net/Beatingworldline/article/details/109069859