| 01-11-2004, 03:54 AM | #1 |
Any of you who have worked with the editor in trying to make completly random things know that the math - random number just doesn't cut it. I tried to make a horse race and it had the same frickin outcome every time I played the game. I told it to choose a random number between 300 and 500 for the movement speed of the unit, but every time it chose the same number for the same unit. Does anyone know how to simulate complete randomness with WC3? |
| 01-11-2004, 04:11 AM | #2 |
I know what you mean, at least partly, I have a random number generator for spawns, and it seems that the worker type units come up much more frequently than others (1/7 chance to spawn a worker). |
| 01-11-2004, 04:20 AM | #3 |
If you are using testmap make sure to turn off use fixed random seed... The random number generation that war3 has some minor fault where its least likely to chose the two extreme ends (300 and 500 in your case). And most likely to chose the values in the center. If i remember it uses your current real time, and last input to generate a number between 0 and 1 then multiplies it across your range. However with such a large range the difference between higher priorty values and lowest priorty value should be close to neglible. If you were just trying to generate a number between 0 and 2 though you'll see that war3 seems to favor 1 quite heavily. |
| 01-11-2004, 05:46 AM | #4 | |
Quote:
|
| 01-11-2004, 05:49 AM | #5 |
It's most likely he's using test map with a fixed seed. |
| 01-11-2004, 05:51 AM | #6 |
how do i turn off fixed seed? |
| 01-11-2004, 05:53 AM | #7 |
It's in the World Editor Main Menu > File > Prefrences Then under the test map tab, uncheck use fixed random seed box. |
| 01-11-2004, 05:55 AM | #8 |
Was wondering about that, I noticed when the computer players in my arena choose heroes during testing they always pick the same ones. |
