Sorry to say something so late, but I found this by chance...

The SRND() function does not work with variables:

ie

$r=10
SRND($r)

is not the same as

SRND(10)

in that it doesn't work. If you want to SRND() a variable this is one way:

code:

$seed=val(substr("@time", 7, 2))
$seed=$seed+1
do
$=rnd(1)
$seed=$seed-1
until $seed=0

this can be shortened to

code:

$seed=val(substr("@time", 7, 2)) $seed=$seed+1
do $=rnd(1) $seed=$seed-1 until $seed=0

This is a bs way of doing this, but it is effective enough... it is basically a 1 in 60 chance of a random seed.

cj


[This message has been edited by cj (edited 20 October 2000).]