Python's random: What happens if I don't use seed(someValue)? -


a) In this case, the random number generator uses the clock to change the clock (the seed) on each run?

b) Does the seed produce pseudo-random values ​​of the lymphatic (lambda)?

"Use the source, Luke!" ... ;-)

  If there is none: Studying will assure you faster; -).  

What happens when the seed is not set (try "I'm not"): except for a = long (_hexlify (_urandom (16)), 16) NotImplementedError: import time a = long ( Time.time () * 256) Use # partial seconds

and xorite:

  random = self. Random u = random () while u & Lt; = 1e-7: u = Random () Return-_ log (U) / Lambida  

Obviously uses the same built-in random generator as every other method , And this Would be the effect of seeding or absence (in fact, how and how? -)


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -