Icon GenerateRandom

Unit: WebCore

Available In: Server Applications

function GenerateRandom(Length: Integer): String

The GenerateRandom function generates a cryptographically-secure random number with the specified length. The return value will be a hexadecimal string containing the generated random number.

Examples

X := GenerateRandom(32);  // X is '6F1F259CC46DB8D76B900C3ED88772402E74E2FC82E392CEC1D6A5CCDE824F07'
Image