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
118
S
32
G
49
Posts: 1,886
Reputation: 37,524

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

Post » Fri May 31, 2013 8:02 pm

i check this soon Thanks :)
B
118
S
32
G
49
Posts: 1,886
Reputation: 37,524


Return to How do I....?

Who is online

Users browsing this forum: abdalghani and 4 guests