Rnd

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Global Method

Rnd() As Double

Supported for all project types and targets.

Returns a randomly generated number in the range 0 <= Rnd < 1.

Syntax

result=Rnd

Part Type Description
result Double The random number.

Notes

The equivalent functionality is provided by the Random class as a special case. The Random class also provides additional options, such as a random number selected from a Normal distribution.

A custom random number generator is used.

See Also

Random class.