.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
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
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 12:04 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.