Skip to main content
Version: 3.27.2

Crypto.randomUUID()

The randomUUID() method is used to generate a v4 UUID using a cryptographically secure random number generator.

Syntax

randomUUID()

Parameters

None.

Return value

A string containing a randomly generated, 36 character long v4 UUID.