+ 3
Is randint module simply takes random values?or whether it follows any patteren..or some conditions??
3 Réponses
+ 6
It follows a pattern. Now some languages have a better random number generator than others. A computer can NEVER do fully random number generations. It is called a pseudo-random number generation. If you were to start it with two computers at the exact same time (or just with the same conditions) it will ALWAYS return same values.
+ 1
you can define seed for generation (and if you put in the same seed, generate a number, terminate program and repeat process, you will always get same number), but if you dont put any, it takes current time for seed (which is random enough for humans).
and the only true random generation is by measuring cosmic radiation. for more exact process, you can google it
0
aah.thanks nedas.