Random.Seed

From Xojo Documentation

Property (As Double )
aRandom.Seed = newDoubleValue
or
DoubleValue = aRandom.Seed

Supported for all project types and targets.

Gets or sets the seed used by the random number generator.

Notes

Use the Seed to initialize the pseudo-random number generator’s algorithm so that you can always get the same stream of numbers from the same seed. However, this is not an endian-independent operation. If you set the seed on a big-endian machine to the same value that you used on a little-endian machine, you will get two different streams of pseudo-random numbers.

Sample Code

This example initializes the seed for to global random to a new value:

System.Random.Seed = 17327