Can't Generate Random #
David Lees
DavidLNonOSpammy at raqia.com
Mon Feb 5 16:17:33 EST 2001
I am not sure what doc you refer to, but look at the documentation for
the random and whrandom modules. See:
http://www.python.org/doc/current/lib/rng-objects.html
http://www.python.org/doc/current/lib/module-whrandom.html
If you want a uniform real randome number between x and y try
import whrandom
whrandom.random(x,y)
Good luck,
david lees
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.
>
> Sent via Deja.com
> http://www.deja.com/
More information about the Python-list
mailing list