why does it not function? i'm confused...

Code:
 ON 1:join:#:{ 
set %welcomemsg. $+ $chan $rand(1,99) test $rand(1,99)
/notice $nick %welcomemsg. $+ $chan
} 


When i join the channel a variable is set on %welcomemsg.#test with a number between 1 and 99 the word test then a random number again. but it doen't work to let it say that variabele crazy

It looks logical to me...