• 🏆 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!

[Solved] Wierd issue with random integer?

Status
Not open for further replies.
Level 15
Joined
Nov 26, 2005
Messages
1,151
Ok, I have a pretty wierd issue with the function: Math - Random integer number between 1 and 10.

I have it to choose randomly from 10 different things for 4 players. I've tested the map like ... 20 times and it ALWAYS picks "10" as the random number for all 4 players.

It's either wrong or some incredible anomaly of luck... any idea why this function migh not work properly and return only the same value?
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
>>>File
>>Preferences
>Tab Map Testing
>[ ] Use Fixed Random Seed

If this option is checked, the game will use a fixed pattern to determine "random" values but only when running the map via the editor. This is useful for debugging to reproduce the same scenario over and over by kind of erasing random factors.
 
Status
Not open for further replies.
Top