• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Random Numbers?

Status
Not open for further replies.
Level 11
Joined
Dec 8, 2006
Messages
334
Hi!
So I'm having my map generate a sequence of random numbers at start.
The thing is, every time I run the map, this sequence is exactly the same.
Doesn't matter if the numbers are integer or real, the randomization always returns the same value.

Now, I personally think this is some weird shit, but I want to hear your opinion...

Have you dudes came across this problem before?
Anyone here knows how do the warcraft's randomization algorithms work?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
It is random every session of the game you play as the seed will be randomly computed based on factors like time and previous states.

In the editor you can force a fixed seed for testing purposes. I suspect this is what you are doing via the one test option.
 
Status
Not open for further replies.
Top