{"ScriptPreparationCode":"// Create an array of 100,000 numbers (0 - 99,999)\r\nvar arr = Array.from(Array(100000).keys());\r\n\r\n// Knuth Shuffle Function\r\nfunction shuffle(array) {\r\n var currentIndex = array.length, temporaryValue, randomIndex;\r\n\r\n while (0 !== currentIndex) {\r\n\r\n randomIndex = Math.floor(Math.random() * currentIndex);\r\n currentIndex -= 1;\r\n\r\n temporaryValue = array[currentIndex];\r\n array[currentIndex] = array[randomIndex];\r\n array[randomIndex] = temporaryValue;\r\n }\r\n\r\n return array;\r\n}\r\n\r\n// Randomize Order\r\nshuffle(arr);","TestCases":[{"Name":"Math.Min - Math.Max","Code":"var max = Math.max(...arr);\r\nvar min = Math.max(...arr);","IsDeferred":false},{"Name":"Array.Sort","Code":"arr = arr.sort(function(a, b) {\r\n return a - b;\r\n});\r\nvar max = arr[arr.length];\r\nvar min = arr[0];","IsDeferred":false}]}