{"ScriptPreparationCode":"function getRandomInt(max) {\r\n return Math.floor(Math.random() * Math.floor(max));\r\n}\r\n\r\nvar values = [];\r\nfor(var i = 0; i \u003C 1000; i\u002B\u002B){\r\n values.push(getRandomInt(10000));\r\n}","TestCases":[{"Name":"old","Code":"const result = [];\r\nfor (let i = _.min(values); i \u003C= _.max(values); i\u002B\u002B) {\r\n result.push(i);\r\n}\r\n_.reverse(result);","IsDeferred":false},{"Name":"new","Code":"const startValue = Math.min(...values);\r\nconst endValue = Math.max(...values); \r\nconst result = new Array(endValue - startValue);\r\nfor (let value = endValue, index = 0; value \u003E= startValue; value--, index\u002B\u002B) {\r\n result[index] = value;\r\n}\r\nreturn result;","IsDeferred":false}]}