Random.RandomizeSeed

From Xojo Documentation

Method

Random.RandomizeSeed()

Supported for all project types and targets.

Changes the random object's seed value to start a new sequence of pseudo random numbers.

Notes

You might use this when you want to re-initialize a Random object but don’t want to create an entirely new one. If you are creatding multiple sequences, this helps to make the sequences unrelated to one another.

Sample Code

This example assumes that the method created a sequence from an earlier seed.

// create other sequences from another seed here..
System.Random.RandomizeSeed
Label1.Text = Str(System.Random.Gaussian)