Re: I have a question.
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: I have a question.

From: Brian van den Broek <bvande@po-box.mcgill.ca>
Date: Thu Jun 30 2005 - 17:47:29 CEST

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
>>>
Received on Thu Sep 29 16:40:11 2005