Hi, let me introduce how you can generate random numbers. Random numbers are frequently used in simulation and coding. That's why I'm introducing random number generation. In order to create random number, we need to input random library or random module. So after importing it, in order to repetitively generate random numbers, often we use for roll. Here roll is a number reading range from 0 to 9. Because range 10 means the 10 numbers sequentially delivered to roll variable, right, then, As long as the condition is met, the following print statement will be printed. And randrange, randrange is a function reading random module. Randrange is a built in function that generates integers within a specific range. Range is determined by two numbers within randrange parenthesis. 1 comma 7 means that 1, 2, 3, 4, 5, 6, 6 numbers are randomly chosen. The 7 is not inclusive, so six numbers will randomly chosen. But that random selection repeats 10 times because the range value is 10 here. And it is horizontally printed because of this end parameter used in print statement. It means that the job this fellow is doing is like randomly finding a number when you toss a dice. So if I implement 5, 4, 3, 6, 1, month, 3, 6, 2, 5. So 10 numbers between 1 and 6 are returned. If we repeat the cell, different number, whenever you repeat the number changes. Now we can apply that random number generation for tossing coin. In this case, in this cell I'm showing tossing a coin 10,000 times. In order to, Find out the outcomes of 10,000 times tossing coin, we create two variables, frequency0, frequency1. So initialized as 0 values. So as 0 appears, the frequency, this valuable will increase otherwise the other available value will increase. The number of repetition is 10 times. So number of sample size is 10 times, 10,000 times. But as you see here, this here says are the sign. You have not bendified [LAUGH]. This is on the bar, on the bar is used here in order to improve readability of large number. Traditionally in real world we use comma instead of on the bar. But in coding you cannot use comma in order to improve readability of large numbers. So instead of comma in python coding you can use on the bar. Surely you don't have to use it, you simply remove it, no problem at all. But what about, there are so many zeros, in that case probably better to use on the bar in order to improve the readability. And we created for loop here, sample it is 10,000 times. So the number of tossing coin is 10,000 times. And then the randrage 0 comma 2, it means the 0 and 1, two integer values are randomly chosen and returned to face. Then face value is evaluated if it is 0. The frequency0 variable gets one more count. Otherwise frequency1 variable gets one more count. It repeats 10,000 times. And the outcomes printed using f strings here. But after showing the outcome, it is better to explain this f strings. So let's, let me execute this cell [SOUND]. The outcome is nicely printed here. The headline is based on this f string. So face frequency and the space for frequency is 13. And ratio, for ratio headline it is 10 empty spaces assigned. And greater here, greater parameter means that right alignment. The less sign means that left alignment. Because we are using greater signs all here They are right aligned. Because for face, we are assigning only 4 empty spaces, that's why we're here. Space is now announced simply face is used. And 0 for frequency variable is used here, values, and 4 empty spaces are assigned and right aligned. That's why it is nicely well aligned. And then frequency0 5,008, others 4,992 printed, 13 spaces assigned for printing headline and the two values. So frequency, it is 9 character, 9 spaces used. It means that the empty space between face and frequency is 4 empty spaces. And ratio is 5 and 10 spaces used. It means that 5 empty space between frequency and ratio. And the ratio of 2 to 2 outcomes is calculated. The total number is 10,000 out of 10,000. The face value is 5,008, that's why the ratio is 50.08. And the decimal point is determined by this parameter, that 2f, right? So, somehow if you use widely f string you can present outcomes very nicely. Now let me introduce using seed numbers. Random number returns randomly integers or floating numbers, randrange returns integers. If you you seed function as a method and put specific numbers, as long as everybody share the same seed number, everybody get exactly the same random numbers. Even though it is random numbers, we share the same random numbers. So in this case seed is Determined, I seed the guess this number and running for roll, randrange between 1 to 7, so 10 times. Then on other for roll, actually this random does seed command line Is binding the first for roll. The second for roll is not blinded by this random seed number. But actually because for roll are coexisting in the same cell. This one is connected to previous seed random number. That's why Even though we rerun, the value does not change. But this for roll value is the same because it depends on this one, this one controlled by this one. That's why even though you rerun the sell, it does not change. But what about we make the first line dormant in this cell and run random numbers. Whenever you rerun, the random numbers change, right? But if you use the same random seed number, then you are getting exactly the same, the 1st line 10 cases, right? So using seed number, you can generate exactly the same random numbers. Actually, this is not a random number, true referendum numbers. You are creating pseudo random number. What is the difference between true random number and pseudo random number? Because pseudo random number is actually already existing. You are using that information, but depending on which you seed you choose, you are getting different random numbers. Now true or false, for generating the same random numbers repetitively you need to use the same seed for each generation, true or false? Yeah, it is easy, I already explained, it is true. As long as you share the same seed number, we are getting, everybody getting exactly the same random number.