on :TEXT:!emmm :#:{ msg $chan emmm answer: $ [ $+ [ $rand(2,$0) ] ] }
This eliminates the need for $2 to be a number, and will allow infinite params.