The randomUUID() method of the Crypto interface is used to generate a v4 using a cryptographically secure random number generator.
randomUUID()
external String randomUUID();