u do something like this:

var rnd_num;


function x()
{
random_seed(0);
rnd_num = random(3);

if (integer(rnd_num) == 0)
{
...
}

if (integer(rnd_num) == 1)
{
...
}

if (integer(rnd_num) == 2)
{
...
}

....


wait(2);

}

----------------------------

Random function returns a float. random_seed(0) does a really random seed.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook