[Tutor] Generating small random integer

Kermit Rose kermit at polaris.net
Mon Feb 20 01:16:12 CET 2006


 
 
From: John Fouhy
Date: 02/19/06 19:01:26
To: tutor at python.org
Subject: Re: [Tutor] Generating small random integer
 
 
You need to tell python that randint is in the random module.
 
ie, instead of calling randint(), call random.randint().


**********************

oops.   I should have know that.

*********************

Have you been through the tutorial on python.org? It is quite helpful.
 

***********************

I skimmed it a couple of times.

I did try to read it from "cover to cover", but too quickly got into places
where I did not know
what it talked about.

So I am falling back on the tactic of using it as a reference to look things
up as I develope my program,
and if I can't find the answer there
to ask you guys.

Kermit    <    kermit at polaris.net    >


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060219/9102451e/attachment.htm 


More information about the Tutor mailing list