Message 
And just to push the Lua barrel a bit more, you could do it in Lua like this, which allows for adding additional titles much more easily. Your method would require changing all your number breaks if you wanted even one additional one:
titles = {
"delibird", "prinny", "metrotaur", "gamma",
"tundraswan", "sinow", "lerk", "fade", "sawfly",
"normal", "dragon", "blackswan", "porpoise",
}
which = (math.floor (MtRand () * table.getn (titles))) + 1
Send ("qmorph " .. titles [which])
This code here generates a random number in the correct range by finding how many items there are in the table, and multiplying the value from the MtRand function by that. MtRand returns a number 0 <= n < 1.
Since there are 13 items in the list above, that would be a number in the range 0 to 12, so we add 1 to get an index in the range 1 to 13 as Lua requires.
Then we simply index into the table.
In your VB example, it is unnecessary to set a MUSHclient variable in the first place. That is only overhead, and caused the problem you had to start with. Sticking to your own technique, simply use a VB variable, eg.
Randomize
r = Rnd
If r > 0.95 Then
world.Send "qmorph delibird"
... and so on ...

 Nick Gammon
www.gammon.com.au, www.mushclient.com  top 
