• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Random Integer Between x and y... Other possiblities?

Status
Not open for further replies.
Level 1
Joined
Mar 2, 2009
Messages
1
Is there any alternative to the random number generator? Whenever I use it, it doesn't seem very random. I'll have it generate between 1 and 10 and get about 20 7's and 1 3 or something... So is there any way to make it more accurate, or any alternative?

If the only alternative is a long and drawn-out JASS trigger than I'm more or less screwed as I hate JASS like the plague... (I know C fairly well, but for some reason coding in JASS makes me want to smash my keyboard.)

Another related question is how do games like Gem TD work, where it randomly generates towers? I can see how to do it using the random function, but again, Gem TD actually gives you random towers and I never get very random numbers, so is my random function just spiteful towards me or do maps like Gem TD employ different random methods?
 
Last edited:
Status
Not open for further replies.
Top