Random

The Random method returns an integer between –32768 and 32767.

Syntax

Tools.random

 

Remarks

This method is similar to the Rnd function but returns an integer.

To get a positive random integer, use the Abs function.

To get a random integer below a specific value, use the Mod function.

Example
<% = Tools.Random %> will display a random integer between 32768 to 32767. For example, -13067.
<% = ( Abs( Tools.Random ) ) %> will display a positive random integer. For example, 23054.
<% = ( Abs( Tools.Random ) ) Mod 100 %> will display a random integer between 0 and 99. For example, 63.
 
See Also

FileExists, ProcessForm