On 20 Apr 2005 08:15:02 -0700, rumours say that
[EMAIL PROTECTED] might have written:

>How can I generate a random number between 0 - 20 and store the number
>in nrrandom?

Just choose a random number yourself, eg. nrrandom=17 (just kidding :)


import random

nrrandom = random.randint(0,20)

See also the random.randrange function.
-- 
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to