|

ResultVariable


When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.


See also: Related Actions


image

image

Math.Random

OverviewExamples

number Math.Random ( number Rand1 = nil,


number Rand2 = nil )


De s cr ip t ion


Generates a random number.


P arame t er s


There are three ways you can use this action: with no parameters, with one parameter, or with two parameters.


If you don't provide any parameters, it will generate a random value between 0 and 1 (inclusive).


If you only provide the first parameter (Rand1), it will generate a random number between 1 and that number (inclusive).


If you provide both parameters (Rand1 and Rand2), it will generate a random number between those two numbers (inclusive).


|