generateRandomUUID JavaScript code to efficiently generate a random (version 4) UUID per RFC 4122 For more information, please see the sample page.