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
103
S
25
G
40
Posts: 1,876
Reputation: 31,885

Post » Fri May 31, 2013 6:46 pm

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

Post » Fri May 31, 2013 8:02 pm

i check this soon Thanks :)
B
103
S
25
G
40
Posts: 1,876
Reputation: 31,885


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], Kyatric, oddreal, oosyrag, waguilar and 3 guests