{"ScriptPreparationCode":"const randomNumbersSet = new Set \u003C number \u003E ();\r\n\r\nwhile (randomNumbersSet.size \u003C 1000) {\r\n const randomNumber = Math.floor(Math.random() * 10000); // Adjust the range as needed\r\n randomNumbersSet.add(randomNumber);\r\n}","TestCases":[{"Name":"for each","Code":"randomNumbersSet.forEach((number) =\u003E {\r\n const result = number \u002B 1; // Constant time operation\r\n});\r\n","IsDeferred":false},{"Name":"for offf","Code":"for (const number of randomNumbersSet) {\r\n const result = number \u002B 1; // Constant time operation\r\n}","IsDeferred":false}]}