• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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?
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
As far as I know, this only happens when you test a map from the World Editor. If you play multiplayer or load it from Frozen Throne, it should properly generate random numbers, You can use the above suggestion to fix this.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
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