Nicely made, however its not really useful. Some tips for next time.
When you're using alot of msg $chan, set a var with that value.
Start with
var %m = msg $chan
%m line1
%m line2
%m line3
Saves you alot of typing.
Next, use if () {
}
if (%lol == 1) {
%m line1
%m line2
%m line3
}
if (%lol == 2) {
%m line1
%m line2
%m line3
}
Also, you could have just made 1 message, and randomize the color
%m $chr(3) $+ %lol $+ ,1 hey this message is in a random color
%m $chr(3) $+ %lol $+ ,1 this message is in the same random color as above
$chr(3) is the control+k, %lol is the value of the color (so which color it gets) and the ,1 is for the white background. That would've saved you alot of trouble!
I'll give you a 6 for your first script.