I have a question.

Brian van den Broek bvande at po-box.mcgill.ca
Thu Jun 30 11:47:29 EDT 2005


Nathan Pinno said unto the world upon 30/06/2005 11:22:
> 
>   Hi all,
> 
>   Does Python have a random function? If so, can you show me an example
> using it?
> 
>   Thanks,
>   Nathan Pinno
>   http://www.npinnowebsite.ca/

 >>> import random
 >>> print "It took %s seconds to find the module named random by 
looking at the docs" %random.random()
It took 0.31385101929 seconds to find the module named random by 
looking at the docs
 >>>





More information about the Python-list mailing list