You could do something like this.
on *:TEXT:!Coolmeter:#: {
.timer 1 1 msg # 1is collecting coolness percentage...
.timer 1 5 msg # 2is done collecting coolness percentage! Let's see how cool you are $nick !
var %cool $r(0,100) | while ($calc(%cool % 5) != 0) %cool = $r(0,100)
.timer 1 8 msg # 4 $nick you are %cool $+ % cool! $iif(%cool = 0,Also known as 100% LAME!,$iif($v1 = 100,YOU'RE AWESOME!,))
}