{"ScriptPreparationCode":"function getRandomNumberInRange(min = 0, max = 100) {\r\n return Math.floor(Math.random() * max) \u002B min;\r\n}\r\n\r\nfunction getRandomValueInRange(min = 0, max = 100) {\r\n const range = max - min \u002B 1;\r\n const randomBuffer = new Uint32Array(1);\r\n window.crypto.getRandomValues(randomBuffer);\r\n const randomNumber = randomBuffer[0];\r\n const scaledRandomNumber = Math.floor(\r\n randomNumber / (Math.pow(2, 32) / range)\r\n );\r\n return min \u002B scaledRandomNumber;\r\n}","TestCases":[{"Name":"getRandomNumberInRange","Code":"getRandomNumberInRange(0, 5000)","IsDeferred":false},{"Name":"getRandomValueInRange","Code":"getRandomValueInRange(0, 5000)","IsDeferred":false}]}