Generating a random number
dale at riverhall.NOSPAMco.uk
Sat Oct 6 03:27:45 CEST 2001
"Ron White" <rwhite at netins.net> wrote:
>Will someone please tell me exactly how to generate a random number from 1
>to 10 in Python 2.1.1 running under windows me? I'm beginning to think
>there is something wrong with my installation or I'm just not smart enough
>to understand what I read.
>Thank you for any help.
from whrandom import randint
print randint(1, 10)
Riverhall Systems Ltd
More information about the Python-list