Announcement

Collapse
No announcement yet.

Random numbers

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Random numbers

    Not sure if this has been brought up before but there seems to be a lot of discussion about the 'random' element of combat. There is no such thing as a 'random' number. There are only methods of producing random numbers.

    Taking a well talked about Civ3 example.

    Egyptian Chariot loses to Greek Warrior
    ....
    player reloads
    ....
    Egyptian Chariot loses to Greek Warrior
    ....
    player reloads
    ....
    Egyptian Chariot loses to Greek Warrior
    ....
    player reloads
    player moves chariot 1 square or moves onto next turn
    ....
    Egyptian Chariot trounces Greek Warrior



    Whats most likely happening here is that there is some random element involved. Random numbers are usually generated using a seed number. Say you use 5 as the seed number. Everytime you do you will get the same sequence of random numbers. (This is assuming a simplistic random number generator).

    This means that after every reload the number at the top of the random number stack is the same and therefore has the same effect on the outcome of battle. When the player moves the unit and another turn passes, other functions have used random numbers. Therefore the next time battle comes around there is a difference number at the top of the stack. ergo different outcomes.

    Now what we can conclude is that either the random number generator is flawed, or that the random element is given too much sway in CIV3.

    Maybe someone from Firaxis could comment?


    Just my theory anyway.

    Dave
    Si tacuisses, philosophus mansisses

  • #2
    You may be interested in taking a look at the last page in random gen. is broken thread. The discussion is ongoing.

    Zap

    Comment


    • #3
      seed numbers are saved with the game that's why results are always the same
      Co-Founder, Apolyton Civilization Site
      Co-Owner/Webmaster, Top40-Charts.com | CTO, Apogee Information Systems
      giannopoulos.info: my non-mobile non-photo news & articles blog

      Comment

      Working...
      X