eeeeeeek
this beast is back?
it was fixed back in 5.61 or something :P
A quicker solution, and a more generic one would be something along the lines of
/myrand {
var %randvar = $rand($1,$calc($2 + 1))
if ( %randvar == $calc($2 + 1) ) return $1
return %randvar
}
(NOTE: not sufficiently tested, but it should work)
but it wouldnt work with $myrand(a,z) like $rand does