00:01
For this problem, i'll show how to do the simulations in excel, just because that is a kind of software that a lot of people at least are going to be familiar with, rather than a programming language per se.
00:13
So i'll jump over into excel here.
00:15
Okay, that's just leftovers from a previous problem.
00:17
Okay, so i'll take a few notes.
00:21
Actually, i'll just take the notes on screen here.
00:24
So we know that we have results should be from zero up to 30.
00:31
Where they should all be integers.
00:39
We have that if the result is from zero up to 17, then that is red.
00:52
From 17 up to 35, that would be green.
00:59
Or, pardon me, that would be black.
01:05
Let me undo my drawing.
01:06
Anyways, from 17 up to 35, that's black.
01:09
Then if the result is exactly 36, that would be green.
01:14
So what i'll do here is they'll go first create a column of the numbers.
01:23
I'll put for each one of these, ran between 0 and 36.
01:37
Actually, just going to note that because, yeah, okay, it's going to be greater than or, okay.
01:46
So i need to be a little bit careful here.
01:49
So i should put ran between 0 up to 0 up to 35 and then do plus 1 so that it's actually going to be should actually be possible to get a result of 36.
02:06
So i'm just going to generate all of these.
02:08
And okay, yeah, i'm seeing some results of 36.
02:12
So actually, one moment here.
02:14
Okay, so actually the ideal way to do this is as follows.
02:18
But equals m round.
02:20
Number is going to be a rand between 0 and 36 and rounding to multiple of 1.
02:33
Now, we're asked to do this for 1 ,000 plays.
02:38
So, one second here.
02:44
Just drag this on down.
02:48
So we are doing one.
02:49
We should end at 1001 right there.
02:55
Then what we need to do is from the number.
02:58
The result, determine the outcome.
03:05
So we know that if we get something between 0 and 17, the result is going to be that we get a, let's see here.
03:15
So that would be red.
03:17
So that would mean you win 4.
03:19
So it would be we'd put in equals if s.
03:26
So we're checking multiple conditions.
03:28
First is going to be checking if that is between, no, actually, one second here.
03:38
So the first check is to see if the result is less than or equal to 17...