Home > Language Reference > System Functions > Random

Random

The Random function returns a random integer between 0 and the specified value.

Usage

Used to test how an application reacts depending on random entries.

Syntax

var = Random(<ceiling_number>)

Parameters

<ceiling_number>. integer, minimum value is 1.

Return value

var, integer, random number between 0 and <ceiling_number>.

Example

a=Random(5000)
MsgBox(a)