A huge thank you. You finally explained to me what the seed() is. I wasn't able to understand until I watch your video, it really made sense to me. Thank you!!
Hi Indently, can you make tutorial about Kivy App development for Android I didn't find good tutorial maybe your make Great tutorial because I always watch your lessons and learn good things you're best python programmer and RUclipsr
There is no difference, once you have created your numbers with that seed then they will stay the same for that seed, if you change seed it will generate new random numbers but if you go back to the previous seed it will generate the last random numbers For example: random.seed(1) generates 1,5,3,4 and then you change to random.seed(2) and generates 3,2,4,2 But if you change back to random.seed(1) it will return again 1,5,3,4
It slipped my mind at the time of recording, but seeds are not generated randomly, they are generated from your system time (simply put).
Thank you very much sir.
Short and crisp explanation 🫡
A huge thank you. You finally explained to me what the seed() is. I wasn't able to understand until I watch your video, it really made sense to me. Thank you!!
This video helped me to create a full guide on the random module, so thank you so much Indently :)
thanks a lot! I couldn't find any good explanation, but yours the best
Really Great and Simple Explanation. Thank you for making such a specific explanation video.
You have really good and high-quality videos keep shooting
well you explained this in 2 mins straight good work!
Superb explanation 👌
Great!
Thank u very much. God bless u.
Is it a best practice to use it?
Or is it just depending on your project?
thank you for this🙏
Hi Indently, can you make tutorial about Kivy App development for Android I didn't find good tutorial maybe your make Great tutorial because I always watch your lessons and learn good things you're best python programmer and RUclipsr
I am wondering, what is the difference for different number in seed
There is no difference, once you have created your numbers with that seed then they will stay the same for that seed, if you change seed it will generate new random numbers but if you go back to the previous seed it will generate the last random numbers
For example:
random.seed(1) generates 1,5,3,4
and then you change to
random.seed(2) and generates 3,2,4,2
But if you change back to
random.seed(1) it will return again 1,5,3,4
Is there a way to print the seed at the end to save it ? Like a print(random.seed()) ?
According to this question: stackoverflow.com/questions/64311236/how-to-find-the-seed-of-the-random-number-generator it is not possible at the moment
Looking at other answers, getting and setting the state is the closest you can get. s = random.getstate(); random.setstate(s)
Thanks
nice video but could you please explain why does seed coz the rando to behave this way ...what does it actually do
ohh i get it, so its like seed to generate world in minecraft, thanks!
That's how I like to think about it as well ahah
whats the point of passing value in seed?
Normally it just depends on the time.
AGH, I knew I was forgetting something, that's absolutely correct, the seed is created depending on the system time.
@@Indently you're welcome
Explain
hello, what about re next? the regex
This is exactly what i need! omg 🙏🙏🥹