Use RAND_MAX in SP's CQuake3GameInterface::Random.