[Zope] Re: How to get 4 Random DTML Documents

martin f krafft madduck at madduck.net
Sun Nov 9 13:34:06 EST 2003


also sprach Dylan Reinhardt <zope at dylanreinhardt.com> [2003.11.08.2043 +0100]:
> This eliminates the risk of huge loop problems caused by several
> predicable problems and is better style besides.

make a list of the available pages, then pop the item at four random
indices off, one after the other. probably the most efficient and
safe way.

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net at madduck
 
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
 
micro$oft could shit in a box, and most people would buy it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.zope.org/pipermail/zope/attachments/20031109/c28c23df/attachment.bin


More information about the Zope mailing list