Crypto.GenerateRandomBytes

From Xojo Documentation

Method

Crypto.GenerateRandomBytes(ByteCount As Integer) As MemoryBlock

New in 2013r4

Supported for all project types and targets.

Generates a random block of data.