• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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