Question: Write a method that returns a random number between 1 and 54, excluding the numbers passed in the argument. The method header is specified as

Write a method that returns a random number between 1 and 54, excluding the numbers passed in the argument. The method header is specified as follows:
public static int getRandom(int... numbers)

Step by Step Solution

3.47 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Output Enter 10 double number between 1 to 54 10 20 30 40 ... View full answer

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 Java Programming Questions!