GenerateRandomNumberFromRange

Top  Previous  Next

 

The GenerateRandomNumberFromRange Special Function Command allows you to retrieve a new cryptographically strong integer based Random Number between two specified values, formatted as a string.

lamp Important: Special Function commands can only be used on the right hand side of a Variable Assignment command.

Command Syntax

 

GenerateRandomNumberFromRange,[MinValue],[MaxValue]

 

Parameters:

 

MinValue: The minimum integer value to be returned.

MaxValue: The maximum integer value to be returned.

 

Both parameters are compulsory. If any required parameter is missing or invalid an error will be thrown.

 

Examples:

 

Generate a RandomNumber between 1 and 26

 

Var:TestRandomNumberFromRange=GenerateRandomNumber,1,26

 

See Also: Special Functions GetBuildFileVersion GetFileNameVersion GetMajorFileVersion GetMinorFileVersion GetRevisionFileVersion GetRegistryValue IncrementFileVersion