alphaindigo, I have no idea just where you have found that "rand()" command, but afaik there is no such function in 3dgs at all.
In correct code -i.e. without missing brackets and unexistant functions- you'd need something like this:
Code:
var num = int( random( 3 ) );
if( num == 1 )
{
ent_morph( my,"first_model.mdl" );
}
if( num == 2 )
{
ent_morph( my,"second_model.mdl" );
}
if( num == 3 )
{
ent_morph( my,"third_model.mdl" );
}
No offense alphaindigo, but you should take a little bit more care before offering code examples to people. Newbies can easily get confused by codes that don't work as expected.