Random Custom (Expression Function Reference)
 
 
 

The Function Random Random Custom command in the expression editor inserts the token RAND([<seed>],<min>,<max>) at the insertion point in the editing pane. This token generates at each frame a random number between the minimum and maximum values you specify. Replace the dummy arguments as follows:

[<seed>]

Replace with an expression for a seed value used to sow the random number generator. This argument is optional.

If you supply a seed, pseudo-random numbers are generated for each frame. These numbers are the same each time you play back the scene.

If you do not supply a seed, the generated values are closer to being truly random. However, they will be different each time you play back the scene.

<min>

The lowest number that can be randomly generated.

<max>

The highest number that can be randomly generated.

Example 1

RAND(2,7)

Generates a random number between 2 and 7 at each frame. The sequence is different each time you play the scene back.

Example 2

RAND(17,2,7)

Generates a random number between 2 and 7 at each frame. The sequence is the same each time you play the scene back.