Page 1 of 1

CTD in $rand()

Posted: Thu Oct 30, 2003 5:45 pm
by Zxeses
/echo $rand(0)


I ran into this when I forgot to set my var to something other then the default 0, so when $rand(@myvar) got called, it bailed.

Posted: Thu Oct 30, 2003 7:00 pm
by dont_know_at_all
D'oh, divide by zero.

Fixed in CVS.