
17 posts
Canada, I think.
joined
#1
Generating random numbers?
Is it possible to create random number in WE sans JASS? I've looked but there seems to be no sign of it, coud've sworn it was there.

1,574 posts
Why do you want to know?
joined
#2
Generating numbers? You mean integers? I didn't quite understand your question but if you give more details maybe I can help.
-Rui

17 posts
Canada, I think.
joined
#3
Sorry I took so long, I was on vacation. Anyways what I mean I would like to know if there is some event that goes like this.
Event - Random number is generated from X to X
And a condition that goes like this.
Condition - If random number generated equal to number beetween X to X

159 posts
So Cal
joined
#4
you are going to have to make the event be a periodic, and the condition be an integer comparison. so it woudl look something like this
Event - every 1 second
Condition -
AND - Integer X is less than Y
Integer X is more than Z
Action -
(what ever you want)
You are going to have to make Integer X a global variable and you can use other triggers and events to alter the value of the global.