Hi, guys
the task is:
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:
The code I've wrote:
The end result for the random generated number should be a value different from the numbers in the array.
In this code I've managed to generate new random if the generated number is equal to one of the numbers in the array, but can't figure out how to
test the new value again.
Could you point me the right direction to find my mistake?
Thanks a lot