I'm trying to get a program that can generate some random numbers and then find the average of those random numbers, all within set parameters.
Here's what I have so far:
import java.util.*;
public class RandomAverage {
    public static void main(String[] args) 
    {
        Scanner scanner = new Scanner(System.in);
        Random random = new Random();
        System.out.print("Enter n: ");
        int n = Integer.parseInt(scanner.nextLine());
        double sum =
And I know I need to end the program like this:
System.out.print("Computer generated " + n + " random numbers in range between 1 – 100 and the average " + __ + " is: ");
    }
}
 
    