• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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,207
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