|
From: Richard C. <tel...@ya...> - 2003-03-21 08:51:22
|
thing with random numbers is, the same input put into the same processes will only every generate the same "random" numbers, hence the term pseudo- random. it was always my understanding that srand() had to be called before rand() but apparently that's not the case... *shrug* but from ioannis it seems rand() must have a default seed it runs off. but most random number classes require a seed, just as a starting point. if this seed is the same, then the random numbers will be the same. but using the system time is a pretty good way to mix up your numbers a bit. |