globalscryptoCrypto.randomUUID()Version: 3.27.2On this pageCrypto.randomUUID()The randomUUID() method is used to generate a v4 UUID using a cryptographically secure random number generator.SyntaxrandomUUID()ParametersNone.Return valueA string containing a randomly generated, 36 character long v4 UUID.