[Zope-dev] Random.shuffle
Steve Alexander
steve@cat-box.net
Fri, 05 Oct 2001 18:54:19 +0100
Steve Alexander wrote:
> Any particular reason why you can't use Random.shuffle from a
> PythonScript? Or any other methods of a Random object.
>
>
> I'd like to propose that restricted python be allowed access to methods
> of random.Random.
>
> I know that I can write a product to add a security declaration to
> random.Random, but I'd like this to be enabled by default in Zope.
Surprisingly enough, you can set the global random seed from restricted
python. That doesn't sound right to me.
<dtml-call "_.random.seed(42)">
--
Steve Alexander
Software Engineer
Cat-Box limited