random between two numbers or 1 or 7

Discussion and feedback on Construct 2

Post » Thu Jul 13, 2017 4:49 pm

random between two numbers or 1 or 7. Is it possible?
Not between 2 numbers, I mean, or this number or other number
B
13
S
2
Posts: 95
Reputation: 861

Post » Thu Jul 13, 2017 4:52 pm

This is not clear at all! Please rephrase, or provide a concrete example.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Thu Jul 13, 2017 4:55 pm

I have 2 numbers 1 and 7 I want the computer to set a random number and only 1 or 7 and not between 1-7.
B
13
S
2
Posts: 95
Reputation: 861

Post » Thu Jul 13, 2017 4:56 pm

Not in the range of 2 numbers
B
13
S
2
Posts: 95
Reputation: 861

Post » Thu Jul 13, 2017 5:11 pm

If you want them to have equal chance of appearing try:

Code: Select all
choose(1,7)
Scirra Employee
B
159
S
55
G
17
Posts: 711
Reputation: 18,177

Post » Thu Jul 13, 2017 5:56 pm

Cool function :-)
B
13
S
2
Posts: 95
Reputation: 861


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 1 guest