Random function

For questions about using Classic.

Post » Wed Apr 13, 2011 12:46 am

I noticed that for the "Generate Random Number" action i can only set the maximum number that it can generate the random number to. Is there any action on which i can specify the minimum? For example, i want to generate a random number between 10 to 20, instead of 0 to 20.
B
1
G
1
Posts: 7
Reputation: 439

Post » Wed Apr 13, 2011 12:48 am

Generate a random number from 0 to 10 and then add 10 to the result, effectively changing the range from 10 to 20. It works for that simple example, at least. :P
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Thu Apr 14, 2011 2:25 am

LOL never thought of that. Thanks.
B
1
G
1
Posts: 7
Reputation: 439


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests