CTD in $rand()

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

Zxeses
a ghoul
a ghoul
Posts: 103
Joined: Tue Jan 07, 2003 4:17 pm

CTD in $rand()

Post by Zxeses » Thu Oct 30, 2003 5:45 pm

/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.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Thu Oct 30, 2003 7:00 pm

D'oh, divide by zero.

Fixed in CVS.