[CSIS201] another question about casting of lots

Luke J Bryan lbryan07 at georgefox.edu
Sat Oct 18 20:05:10 PDT 2008


Yes, it's required for use of random.randint and any random.functions.


-----Original Message-----
From: csis201-bounces at cs.georgefox.edu on behalf of Laura C Gotthardt
Sent: Sat 10/18/2008 19:50
To: CSIS201 Intro to Comp. Sci. I
Subject: Re: [CSIS201] another question about casting of lots
 
Sorry, had a small error I fixed in code (randInt doesn't work, randint does), but I still don't remember learning about using "import random" in class. Are we supposed to use this?


-----Original Message-----
From: csis201-bounces at cs.georgefox.edu on behalf of Laura C Gotthardt
Sent: Sat 10/18/2008 19:42
To: CSIS201 Intro to Comp. Sci. I
Subject: [CSIS201]  another question about casting of lots
 
My dice won't work. Is this the correct format?
die1 = random.randint(1,6)

I get this error:
NameError: name 'random' is not defined

I looked it up on the internet, and places said to put "import random" before it. That works if it's all by itself in python, but within my program it gives me this error:
AttributeError: 'module' object has no attribute 'randInt'

Help?


-----Original Message-----
From: csis201-bounces at cs.georgefox.edu on behalf of LeRoy J Seckinger
Sent: Fri 10/17/2008 14:51
To: CSIS201 Intro to Comp. Sci. I
Subject: [CSIS201] casting of lots
 
what is the due date?


-----Original Message-----
From: csis201-bounces at cs.georgefox.edu on behalf of Brent Wilson
Sent: Tue 10/7/2008 13:10
To: CSIS201 Intro to Comp. Sci.
Subject: [CSIS201] Program #2 Due Friday
 
Class,

Since the travel snafu this weekend, I wanted to make sure everyone got one
last chance to ask any questions. That would be tomorrow and then the due
date would be Friday.

-Prof. Wilson

-- 
Brent Wilson
Computer & Information Sciences
George Fox University
Newberg, OR 97132
http://bwilson.cs.georgefox.edu






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cs.georgefox.edu/pipermail/csis201/attachments/20081018/af6b32e1/attachment.htm 


More information about the CSIS201 mailing list