00:01
Hello, welcome to this lesson.
00:02
In this lesson we'll be giving the lab program, it has the main method that has a scalar object and a random object with a seed of two.
00:14
We are creating a static method that would return one if the random object given to it is one, the value of that is one.
00:31
And if the value is zero, it will return tails.
00:34
So let's start.
00:36
Here we have public static string.
00:43
And it has a random object as an input.
00:56
So this is what i'm going to do.
01:01
I'm going to check if the random, okay, the next int, giving it a bound of two because i wanted the values that will return to be zero, one, if that is equals to one, i'm simply returning heads, else returning as returning tails.
01:46
Okay, so simply that is what i'm doing here.
01:51
Let's have an integer value, which will store the user input into.
01:58
So user would want to call this method a number of times here will show them that they should enter the number of times that they want this trials to be.
02:13
So say, enter the number of trials.
02:25
And after that, we'll store the value into the value.
02:31
Okay, so we'll say, we use this kind of objects and we call a method next int, which would expect an integer value to be entered by the user...