[Tutor] Random module.. or?

Kent Johnson kent37 at tds.net
Wed Aug 8 02:05:10 CEST 2007


steve reighard wrote:
> Python provides you with a pseudo random number generator whose output 
> values are uniformly distributed between the input parameters.  What you 
> are dealing with in fish weights or test scores or other natural 
> phenomena is most likely a normal distribution. Check out Wikipedia's 
> normal distribution entry.  The math is really juicy. You may end up 
> with a recipe for the Python Cookbook.

No need for all that, use random.gauss()

Kent


More information about the Tutor mailing list