What's wrong with this code?

Robert Kern rkern at ucsd.edu
Sat Jul 2 19:49:34 CEST 2005


Nathan Pinno wrote:
>   Hi all,
> 
>   What's wrong with the following code? It says there is name error, that
> random is not defined. How do I fix it?

You need to import random.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter




More information about the Python-list mailing list