on 1:TEXT:~rand*:#: {
if ($$2 isnum) && ($$2 <= 99999) {
/msg $chan Your Random Number Is: $rand(1, $$2)
}
}