Question: Write a program called RandomNumbers that prompts the user for a minimum and maximum integer value and uses the Random class nextInt ( ) method

Write a program called RandomNumbers that prompts the user for a minimum and maximum integer value and uses the Random class nextInt() method to create and output five random numbers between the minimum and maximum values, inclusive. You may assume that the minimum value is less than or equal to the maximum value.
Here are a couple program execution examples (since the generated values are random, your program will produce a different series of values):
$ java RandomNumbers
Minimum Value: 3
Maximum Value: 6
6
6
3
5
5
$ java RandomNumbers
Minimum Value: 3
Maximum Value: 6
5
3
3
4
6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!