Syntax:
RndFloat (Floor as Double, Ceiling As Double)
Description:
Returns a random floating point 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.
Example:
Sub
Main
Dim MyRandomNumber As Double
MyRandomNumber = RndFloat (1, 100) 'Random
number between 1 and 100
MsgBox Str(MyRandomNumber)
End Sub
See Also: