Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Figuring Out Functions
Author: Eddie Carroll
| Website: http://www.flashkit.com |
The Function Armoury - Random
|
Random
|
Syntax: Random (number)
|
While a computer cannot generate a purely random number. This function will do the job and will allow you to create unpredictable behaviour in your movies. The argument for the function specifies the upper limit of the operating range, the lower limit is 0.
Set Variable: "randomNumber" = Random (100)
The example here will output a random number between 0 and 99. On the face of it, this function may not look very exciting but with a little imagination the function Random can add a little more depth and spontaneity to your movies.
|
| |
|
| » Level Intermediate |
|
|
Added: : 2000-09-27
Rating: 8.84 Votes: 113
Hits: 12087
|
| » Author |
|
Eddie is the Content Editor at Flashkit.com and is actually a sentient Gateway Solo 2150xl notebook that suffers from acute lysdexia and caffine addiction. He is carried on the shoulders of a semi-autonomous human called "Body".
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (12 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|