{"ScriptPreparationCode":null,"TestCases":[{"Name":"for","Code":"const nums = 65536;\r\nconst random = new Uint8Array(nums);\r\ncrypto.getRandomValues(random)\r\nconst RG_CHARSET =\r\n \u00270123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._\u0027;\r\nlet z = \u0027\u0027;\r\nfor(let i = 0; i \u003C nums; i \u002B= 1) {\r\n z \u002B RG_CHARSET[random[i] \u0026 RG_CHARSET.length]\r\n}","IsDeferred":false},{"Name":"forEach","Code":"const nums = 65536;\r\nconst random = new Uint8Array(nums);\r\ncrypto.getRandomValues(random)\r\nconst RG_CHARSET =\r\n \u00270123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._\u0027;\r\nlet t = \u0027\u0027;\r\nrandom.forEach(randomNumber =\u003E t \u002B RG_CHARSET[randomNumber \u0026 RG_CHARSET.length])","IsDeferred":false},{"Name":"reduce","Code":"const nums = 65536;\r\nconst random = new Uint8Array(nums);\r\ncrypto.getRandomValues(random)\r\nconst RG_CHARSET =\r\n \u00270123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._\u0027;\r\nrandom.reduce(\r\n (randomString, randomNumber) =\u003E\r\n randomString \u002B RG_CHARSET[randomNumber % RG_CHARSET.length],\r\n \u0027\u0027\r\n );","IsDeferred":false},{"Name":"map \u002B join","Code":"const nums = 65536;\r\nconst random = new Uint8Array(nums);\r\ncrypto.getRandomValues(random)\r\nconst RG_CHARSET =\r\n \u00270123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._\u0027;\r\nrandom.map(randomNumber =\u003E RG_CHARSET[randomNumber \u0026 RG_CHARSET.length]).join(\u0027\u0027);","IsDeferred":false}]}