• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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

Status
Not open for further replies.

Stannous

S

Stannous

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 by a moderator:
Status
Not open for further replies.
Back
Top