• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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