Can't Generate Random #

Steve Lamb grey at despair.rpglink.com
Mon Feb 5 14:21:40 EST 2001


On Mon, 05 Feb 2001 19:13:39 GMT, jimmypop181 at my-deja.com
<jimmypop181 at my-deja.com> wrote:
>Does somebody know how to generate a random number in
>Python?  I read the docs and it says rand(x, y) should do it.  But
>whenever I try that, It says that "there is no variable named rand".
>This also happens when trying to get the Square Root.  Please
>help.

    Look at the documentation on whrandom for simple random numbers.

-- 
         Steve C. Lamb         | I'm your priest, I'm your shrink, I'm your
         ICQ: 5107343          | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------



More information about the Python-list mailing list