Skip to content

RandomNum Function

Nilesh Ghodekar edited this page Apr 12, 2018 · 7 revisions

Syntax

int RandomNum(start:int, end:int)

Description

Returns a random number within the specified interval. The random number returned is greater than or equal to start and less than end. This behaviour is same as the .Net Random.Next() method, but not same as the FIM RandomNum function which can return the end number.

Remarks

If any input parameter is null, an exception is thrown.

Supported Version

1.0.0.0 and later

Examples

RandomNum(300,400)

Clone this wiki locally