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
43
Posts: 1,879
Reputation: 33,403

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

Post » Fri May 31, 2013 8:02 pm

i check this soon Thanks :)
B
103
S
25
G
43
Posts: 1,879
Reputation: 33,403


Return to How do I....?

Who is online

Users browsing this forum: bangoo, NetOne and 6 guests