Xojo.Crypto.GenerateRandomBytes
From Xojo Documentation
Method
Xojo.Crypto.GenerateRandomBytes(byteCount As UInteger) As Xojo.Core.MemoryBlock
Supported for all project types and targets.
Supported for all project types and targets.
Generates a random block of data of the specified byteCount.