| 10-16-2003, 04:08 PM | #1 |
I have a strange issue regarding Random Number Generator in WC3. I have a trigger that fire event MAP INIT, where i create an array of 200 elements of random integers (0 to 72). Well, when i try my map directly from WE the array contain EVERYTIME same values. If i try in multiplayer that don't happen. Someone have noticed this problem? |
| 10-16-2003, 04:18 PM | #2 |
When, you say "directly from WE", you mean that you use the Test Map function, right? You see, if memory serves, when maps are started in the WE the same random seed is generated every time. |
| 10-16-2003, 05:16 PM | #3 |
Go to file-> prefrences -> test map and unclick use fixed random seed |
| 10-16-2003, 05:17 PM | #4 |
Ding! You are correct, Pirogen! In fact, there is an option under File->Preferences->Test Map where you can turn on and off using a fixed random seed. A fixed seed can ease bugtesting since the same thing will happen every time, but naturally if you're testing something you want to be random, you've got to turn it off. [edit] Bah, Reb beat me to it. ;) |
| 10-16-2003, 11:18 PM | #5 |
Well, a new discovery for me...Thank you :D |
