00:01
So for this setting, we have the hope solo card.
00:04
It's supposed to be in 20 % of boxes.
00:06
And it says, how could we simulate this? well, this is 2 out of 10, or 1 out of 5.
00:13
So we could use the random digits 1, 2, 3, 4, 5.
00:19
And we could assign 1 to end up being that it's a hope solo picture.
00:26
And these are not hope solo pictures.
00:30
And then we can use our rand int, and 1 through 5.
00:40
And then we continue to hit that button until we get a success.
00:45
And so continue to count number of trials to get a 1.
00:59
So i'm not going to run a total of 30 trials, but i'll give you some.
01:03
So i'm hitting my calculator.
01:05
And i'm getting that math probability.
01:08
And i'm going to get that rand int.
01:10
And i'm going to have 1, 5.
01:13
And my first time i hit the button, i get a 4.
01:17
And then i get a 5.
01:19
And then i get a 3.
01:20
And then i get a 5.
01:22
And then i get a 4.
01:23
And then i get a 3.
01:25
And then i get a 4.
01:27
And then i get a 5.
01:28
And then i get a 1.
01:30
So it took me 1, 2, 3, 4, 5, 6, 7, 8, 9 trials...