Announcement

Collapse
No announcement yet.

The truth about Random

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • The truth about Random

    Well here it is: I have seen conflicting answers so I'll clear it up:

    Random(x), reutrns a value between:
    0 to (x-1)

    How do I know?

    From the WW2 code
    Code:
    tmpRand = Random(7) + 2;			// Spawn between 2 and 8 units

  • #2
    That's what I've been saying all along. But much more important: does it work with large numbers? I'm gonna do some serious testing with this when I get home...
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

    Comment

    Working...
    X