microsoft rand() int seed = 1; int rand() { return ( (seed = seed *214013 + 2531011) >> 16 ) & 32767; } Protoss a good race, do not change it.