Bug in random expression

Bugs will be moved here once resolved.

Post » Thu Nov 24, 2011 9:04 am

At the top of the event sheet I define global variables of number type, for instance "Minimum = 0" and "Maximum = 10".

Later, when I use random expression this happens:
    random(Maximum)- everything is OK

    random(Minimum, Maximum)- everything is OK

    random(Maximum, Minimum)- everything is OK although Maximum>Minimum!

    random(1, Maximum) - C2 is displaying this warning (so this happens when parameter1 is any number and parameter2 is a global variable): "Invalid Parameter, Parameter 2 of 'random': must be number"


By the way, when I click on "Help on expressions" link in Parameter Dialogs then I get this message on www.scirra.com:

404 Page Not Found
Oopsy daisy! The link you clicked appears to not exist in our interbanks.ssusnic2011-11-24 09:06:59
B
9
S
2
G
5
Posts: 26
Reputation: 3,219

Post » Fri Nov 25, 2011 5:21 pm

Oops, fixed in next build. We'll be writing the manual and fixing help links soon.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Nov 25, 2011 8:04 pm

OK, thanks for your answer.
B
9
S
2
G
5
Posts: 26
Reputation: 3,219


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests