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
111
S
28
G
48
Posts: 1,882
Reputation: 36,426

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,670

Post » Fri May 31, 2013 8:02 pm

i check this soon Thanks :)
B
111
S
28
G
48
Posts: 1,882
Reputation: 36,426


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 45 guests