100 nextRandom = nextRandom * 1103515245 + 12345;
101 return (nextRandom & 0xffff00) >> 8;
112 int maxMultiple, rnum;
115 maxMultiple = 0xffff / range;
116 maxMultiple *= range;
120 }
while (rnum >= maxMultiple);
122 return (rnum % range);
168 gettimeofday(&time, NULL);
void seedRandom(int seed)
short getRandom(short range)
void randomlySeedRandom()
short getERandom(short limit)
Header file for Micropolis game engine.
static T min(const T a, const T b)