[Zope] What happened to random?

Bill Anderson bill@libc.org
Fri, 26 Jan 2001 17:35:52 -0700


OK, got a problem with 2.3.0 and Python Script; one that breaks Membership :(

In Python Methods, I can do this

choose=random.choice


And it works.

However, in a Python Script in 2.3.0, it barfs, complaining about random 
not being a variable. I've tried self.rhandom, context.rhandom,  and 
_.rhandom, and none work. Any help would be very much appreciated.

Bill Anderson