Kann man so machen
Code:int RND; //-------------------- function randomize() //-------------------- { RND = system.timer(); } //-------------------------------------------- function rnd(int min, int max) returns float //-------------------------------------------- { float r1; RND = RND * 251 ; r1 = math.abs(RND) ; return ((r1 / 32768) * (max - min + 1)) + min; }
Lesezeichen