Thread: Game Crash
View Single Post
  #3  
Old September 15th, 2004, 12:01 PM
Cainehill's Avatar

Cainehill Cainehill is offline
Lieutenant General
 
Join Date: Mar 2004
Location: Albuquerque New Mexico
Posts: 2,997
Thanks: 0
Thanked 0 Times in 0 Posts
Cainehill is on a distinguished road
Default Re: Game Crash


With random numbers, of course it is possible for the same number to come up in a row, even on different computers.

After all - flip a coin 8 times, there's a one in 64 chance it comes up heads every time. Roll a die 3 times, there's a one in 256 chance that it'll come up a 6 each time.

In an infinite universe, it's not just possible, but a certainty that random numbers will come up the same across _all_ instances on a given day.

On the other paw - mine is dom16822. It's a sign from Dog!

Really does seem like it's using the same seed for the RNG, or not setting a seed at all. You should probably use the clock for generating the seed, or use deccan's suggestion of a timestamp and whatnot (on multiple user systems, I've used a combination of a date/timestamp plus a random number, testing for the existence of that already and incrementing the number if need be, just for paranoia's sake.)
__________________
Wormwood and wine, and the bitter taste of ashes.
Reply With Quote