• 🏆 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!

[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