set random numbers

Get help using Construct 2

Post » Fri May 31, 2013 6:26 pm

I have variable from 0 to 100.
I set event when pressed space set 'int(random(0,40))' or 'int(random(60,100))'

But i need this in one event
how to avoid these numbers from 41 to 59?
B
122
S
33
G
53
Posts: 1,905
Reputation: 39,756

Post » Fri May 31, 2013 6:46 pm

[code]choose(int(random(0, 40)), int(random(60, 100)))[/code]
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,870

Post » Fri May 31, 2013 8:02 pm

i check this soon Thanks :)
B
122
S
33
G
53
Posts: 1,905
Reputation: 39,756


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, facecrime, IronHeart, kriand, Strawoy and 62 guests