[Tutor] Generating small random integer

Alan Gauld alan.gauld at freenet.co.uk
Mon Feb 20 00:50:37 CET 2006


> How can I find documentation on the random number generator function.
> It's not listed in the math module.

Its in the random module.
BTW There are lots of random functions inPython depending on the 
algorithm you need.

> In general,  how can I find documentation on any particular function if I
> don't know what module it is in?

I usually just use Google - sounds primitive, but it usually gets it 
in the first 5 entries... For example try searching for

python random function

:-)

HTH,

Alan G
Author of the learn to program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld




More information about the Tutor mailing list