Quell,
Here's something simple which is consistent with the response from Kheun. Take a look...
Sincerely, Chris.
![]()
Code:#include <time.h> #include <stdlib.h> static const int random(void) { static bool is_init = false; if(!is_init) { is_init = true; ::srand(static_cast<unsigned int>(clock())); } return ::rand(); }




Reply With Quote