JAVA Array of random numbers in range
Hi, guys! I need help from local experts: I made a code that generates random numbers in the array, but I needt it to pick random numbers in some particular range(now it's picking any). I'm trying to figure out how to do it myself, but I have a biger problem that I have a really hard time to resolve: I need it to use a foreach loop to print all elements of the array accurate to four decimal places, and pass the array of doubles to a method that executes as follows: uses a for loop and a Math class method to round up each element to its nearest integer. creates a 10-element array of ints named temp. uses another for loop to cast each element of the double array to temp. returns temp That's what I really need help with. Please, help me to correct it. Any help is much appreciated! Here is my code: https://code.sololearn.com/czRXyUwyqaYT