{"ScriptPreparationCode":"var IDX=36, HEX=\u0027\u0027;\r\nwhile (IDX--) HEX \u002B= IDX.toString(36);\r\n\r\nfunction uid(len) {\r\n var str=\u0027\u0027, num = len || 6;\r\n while (num--) str \u002B= HEX[Math.random() * 36 | 0];\r\n return str;\r\n}\r\n\r\nfunction uid2(len = 6) {\r\n const hex = \u00270123456789abcdefghijklmnopqrstuvwxyz\u0027;\r\n let id = \u0027\u0027;\r\n while(len--) id \u002B= hex[Math.random() * 36 | 0];\r\n return id;\r\n}\r\n\r\nfunction hex() {\r\n return Math.random().toString(36).substring(6);\r\n}","TestCases":[{"Name":"uid","Code":"uid()","IsDeferred":false},{"Name":"uid2","Code":"uid2()","IsDeferred":false},{"Name":"hex","Code":"hex()","IsDeferred":false}]}