int rnd = GetRandomUInt(1,10); int GetRandomUInt(int min, int max) { return RoundToFloor(GetURandomFloat() * (max - min + 1)) + min; }