• 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.

[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