I have tried this question so many different ways and I keep getting an error that says “Do not call Math.random() in this course. Instead use StdRandom” … I need to use Math.random for the assignment though. Here is the question followed by my code. Please point out what I am doing wrong.
A program, “RanNumGen,” that takes an integer command-line argument “n” that indicates the number of random numbers to generate and uses the method “Math.random()” to print uniform random values between 1 and 100 (both inclusive), and then prints the minimum and maximum value.
Sample runs would be as follows.