new rand = random(sizeof(EngineRandom));//do something with it, e.g. EngineRandom[rand]if(rand == 0)// do stuff