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

[General] Need help for Jass. Stupid question...

Status
Not open for further replies.
Level 11
Joined
Oct 11, 2012
Messages
711
Alright, I admit that I am a noob and my question is: what does the following mean?

GetRandomInt (1,'d')<=10

So, what does "d" mean? Why is there a 'd" in it? Shouldn't it be an integer ( a number)? "d" is a letter... >_<
Thanks a lot!
 
Last edited:
Level 16
Joined
Dec 15, 2011
Messages
1,423
Anything in quotes ("") is a string and can't be passed as an argument in the GetRandomInt func. I am not sure what you are trying to ask.

GetRandomInt returns a random integer between the two numbers. Oh and the correct syntax is GetRandomInt (1, 10) == 10 btw.
 
Level 11
Joined
Oct 11, 2012
Messages
711
Anything in quotes ("") is a string and can't be passed as an argument in the GetRandomInt func. I am not sure what you are trying to ask.

GetRandomInt returns a random integer between the two numbers. Oh and the correct syntax is GetRandomInt (1, 10) == 10 btw.

Thnx, Doomlord. I revised my question.
I made a mistake, actually it looks like the following:

GetRandomInt(1,'d')<=10

Does this make any sense to you?
My question is: why is there a 'd" in it? Shouldn't it be an integer ( a number)? d is a letter... >_<
 
Status
Not open for further replies.
Top