Re: Random_long(0, ??) -
07-01-2004
AFAIK, gpGlobals->time returns the time in seconds since the server booted on a new map, no kludges...
BTW, for the original question, I found a very sophisticated random number generator on the net ! The problem with rand() is that it can only return 16-bit integers, you can't do real 32-bit number generation using rand() ; however some sound libraries use extremely well shaped random number generators for generating sound noise, they are definitely worth a look.
RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
|