{"ScriptPreparationCode":"window.generateUUID = () =\u003E {\r\n return Math.random().toString(36).substring(2, 15) \u002B Math.random().toString(36).substring(2, 15);\r\n};\r\n\r\nwindow.generateID = (stringLength = 22) =\u003E {\r\n let randomStr = \u0022\u0022;\r\n const characters = \u0022ABCDEFGHIJKLMNOPQRSTUVWXYZqeytrpolkadjsghfgmnbzxcvnQPOWEYRKASJHDGFMNBCVX--___-_jsfhrlg-_124903564576986483658fgh4sdfh687e4h897WETHJ68F7G4688471877GFHJFFGJ87469857468746hfghwrtiyj4598yhdjkhgnk\u0022;\r\n for (let index = 0; index \u003C stringLength; index\u002B\u002B) {\r\n randomStr \u002B= characters.charAt(\r\n Math.floor(Math.random() * characters.length)\r\n );\r\n }\r\n return randomStr;\r\n };","TestCases":[{"Name":"Crypto randomUUID","Code":"const uuid = crypto.randomUUID();","IsDeferred":false},{"Name":"generateUUID","Code":"const uuid = generateUUID();","IsDeferred":false},{"Name":"generateID","Code":"const uuid = generateID();","IsDeferred":false}]}