My bad, Zope does allow the random module, was just importing and
refering to it wrong in my script:
from random import *
randomNum = random()
randomNum = random.random()
Thanks for all you help.
Aaron Bauman wrote:
From ZopeBook 2.6:
Using a module usage (pick a random choice from a list):
'two', 'three', 'four', 'five'])">
a random number between one and five
Substitute any list you wish...
to generate a random number [ 0 < x < 1 ), you'd just use something like
I'd be curious to know if the random() method DOESN't work,
cause the choice method has definitely worked for me...
Hope it helps,
From: David Siedband [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 25, 2005 2:38 PM
Subject: Re: [Zope] Random Module
Are you sure you can't import the functions you need? It might be
worthwhile to see if what you want to do can be done without adding to your
allowed modules. That should be kind of a last resort. I'm curious what
kind of functionality you need from random that can't be done within the
On Aug 25, 2005, at 10:36 AM, Sam Boggess wrote:
Why won't Zope let me call the random module? It's really annoying to
have to write an external method to call such a simple tool. Is there
a way around this? Thanks.
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -