Random.Number

From Xojo Documentation

Method

Random.Number() As Double

Supported for all project types and targets.

Returns a random number as a Double in the range greater than or equal to 0 and less than 1.

Sample Code

This example generates a random number in the interval >= 0 and < 1.

Var d As Double
d = System.Random.Number
Label1.Value = d.ToString