sethwolpowitz sethwolpowitz 10-01-2024 Computers and Technology contestada Consider the following code segment. /* * Returns a 1D array of random int values between 0 and 100, inclusive */ public int[] createRandomNumbers() { int[] tempNumbers = new int[10]; for (int index = 0; index < tempNumbers.length; index++) { /* missing code */ } return tempNumbers; } Which line of code should replace /* missing code */ to produce the intended result? Consider the following code segment. /* * Returns a 1D array of random int values between 0 and 100, inclusive */ public int[] createRandomNumbers() { int[] tempNumbers = new int[10]; for (int index = 0; index < tempNumbers.length; index++) { /* missing code */ } return tempNumbers; } Which line of code should replace /* missing code */ to produce the intended result? tempNumbers[index] = (int)(Math.random() * 100); tempNumbers[index] = Math.random() * 101; tempNumbers[index] = (int)(Math.random() * 100) + 1; tempNumbers[index] = Math.random * 100; tempNumbers[index] = (int)(Math.random() * 101);