Random.seed(parameters ) what are the parameters given in the function seed like in the video it is given

random.seed(1)
so why 1 is given as parameter ?

Hello @coding123c,
1 is the seed value on the basis of which pseudo random numbers are generated. And seed can be any number.
The numpy random seed is a numerical value that generates a new set or repeats pseudo-random numbers. The value in the numpy random seed saves the state of randomness. If we call the seed function using value 1 multiple times, the computer displays the same random numbers.
For example in the following code.
seed
When the value is not mentioned in the numpy random seed, then the computer will use the current system time in seconds or milliseconds as a seed value to generate a different set of random numbers.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

In the given example you have given seed(1) then it is saving the state of randomness but i have tryed giving seed(2) and seed(3) then also it is saving the state of randomness , so my doubt in seed(parameter) was on which basis we give seed(1) or seed(2) as both saves the state of randomness

Hello @coding123c,
You cam use any integer in the parameter of seed function it will generate the set of random numbers with different of randomness in same code like seed(1) will generate different state of randomness, seed(2) with different and seed(3) also with diffrent.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.