Randomly setting a value?

For questions about using Classic.

Post » Sun Jan 04, 2009 7:23 pm

Hi, I'm wondering how you would set a value to a random number. For example Setting the speed of something from 300 to 400?
B
4
S
2
G
4
Posts: 164
Reputation: 2,178

Post » Sun Jan 04, 2009 9:07 pm

The function is
Random(Highest number you want returned)

So if you want a number between 0 and 100 it would be
Random(100)

To do between two numbers you would do

Random(100)+300

This would return a random value between 300 and 400.
B
5
S
2
G
4
Posts: 632
Reputation: 2,829


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests