[Zope] removing items from lists ?

Junk junk@gargl.net
Tue, 19 Jun 2001 12:03:15 +0200


hello,

i am making a dtml script that will choose 3 different objects and display
them and i'm kindda stuck.

i think the process would be :

1] make a list of objects (dtml-let ?)
2] choose a random item from the list (or maybe choose all three at one time
?)
3] remove this item from the list
4] same player shoots again...

right now i'm able to make the list, to use whrandom.choice(xx) to get a
random value, but i can't remove items from the list and once in a while i
do get the same item twice (which i don't want happening).

maybe i don't do it the right way ;-)

$ven