[Zope] random numbers

Morten W. Petersen mpeters@online.no
Fri, 08 Oct 1999 01:52:51 +0200


Kevin Howe wrote:
> 
> How do you access the random/randint function via dtml?
> I need to be able to generate several unique random numbers in the same
> document one after another.
> 
> I thought it would be something like <!--#var "_.random()"--> but this
> doesnt work.
> 
> thanks
> KH
> 
You're probably looking for <!--#var "_.whrandom.random()"-->