From Xojo Documentation

Revision as of 18:39, 28 January 2021 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Global Method

Rnd() As Double

Supported for all project types and targets.

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



Part Type Description
result Double The random number.


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.