Random

Overview

Returns a random integer between the values you specify, inclusive.

Syntax

Random(1, 2)

Function Properties

Ordinal Type Description
1 int Required Least value to return as the returned random integer
2 int Required Greatest value to return as the random integer

Usage

Given

SET @low=2  
SET @high=200
%%=Random(@low,@high)=%%

System returns a random value greater than or equal to 2 and less than or equal to 200.

Last Updated: Jun 8, 2021