N-R > random
randomSyntax
random();
Arguments
value
The highest integer for which random
will return a value.
Description
Function; returns a random integer between 0 and the integer specified in the value
argument.
Player
Flash 4. This function is deprecated in Flash 5; use of the Math.random
method is recommended.
Example
The following use of random
returns a value of 0, 1, 2, 3, or 4:
random(5);
See also
Math.random