RndInt

Syntax:

RndInt (Floor as Integer, Ceiling As Integer)

Description:

 

Returns a random number between Floor and Ceiling.  

 

Parameter

Description

Floor

The lowest random number possible.  This cannot be a negative value.

Ceiling

The highest random number possible.  This cannot be a negative value and must be greater than Floor.

 

See Also:

RndEx, RndFloat

Example:


Sub Main
Dim MyRandomNumber As Integer
MyRandomNumber = RndInt (1, 100)   'Random number between 1 and 100
MsgBox Str(MyRandomNumber)
End
Sub