[Zope] Random # generator

John Toews john@academiccolab.org
Fri, 23 May 2003 13:58:41 -0500


I know this is a stupid question, I'm feeling quite inept as a
programmer right now, but I cannot figure out how to generate a random
number. I've tried a few different methods but can't seem to get any
good result.

Code (Python script):

import random
g =3D random.Random()
return g


Result:

Sorry, the requested resource does not exist.
Check the URL and try again.
Resource: random.Random instance at %MEMORYADDRESS%

Thx.