System.Random

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aSystem.Random

New in 2019r2

Supported for all project types and targets.

Returns the singleton instance of the Random class for generating random numbers.