• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Wierd issue with random integer?

Status
Not open for further replies.
Level 15
Joined
Nov 26, 2005
Messages
1,152
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?
 
>>>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.
Back
Top