View Single Post
Re: Portable, self-contained replacements for RANDOM_STUFF()
Old
  (#6)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Portable, self-contained replacements for RANDOM_STUFF() - 07-01-2004

yes... more than 32767 waypoints/nodes/walkfaces/navlinks/whatever.

One reason among others

Also, I assure you that the random results are very convincing : the algorithm is based on an infinite math suite, whose start point is determined by the initial seed - and this implementation is VERY fast, much faster than calling rand() twice. I believe the guy who wrote this did a math paper somewhere, it must be lying around on the net



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."

Last edited by Pierre-Marie Baty; 07-01-2004 at 22:01..
  
Reply With Quote