Question: Write the following method that returns a random number between start and end, excluding the numbers. For example, invoking getRandom ( 1 , 1 0

Write the following method that returns a random number between start and end, excluding the numbers.
For example, invoking getRandom(1,100,4,8,95,93) returns a random number between 1 and 100 excluding 4,8,95, and 93. Write a test program that invokes getRandom(1,100,4,8,95,93)45 times and displays the resulting numbers 15 per line using the format %4d. A sample run is as follows:

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!