Outputs a random number.

Syntax

XIH.Random(colcaption)
XIH.Random(colcaption, max, min)
XIH.Random(colIndex)
XIH.Random(colIndex, max, min)

Parameters

Parameter

Data type

Description

Sample

colIndex

int

Index of a column

4

colcaption

string

String specifies the columns caption.

"col1"

min

int

The minimum value the random number can have 

5

max

int

The maximum value the random number can have

10

Remarks

ColumnIndex is zero-based.

The column acts as seed for the random number.

Examples

XIH.Random("col1",1,5)
XIH.Random(0,1,10)