Write a program called Random50 that fills an array with fifty random values between 1 and 999.
However, before a number is entered into the array the program must check that the number is not
already in the array. If it is already present then a new random number must be produced and
similarly checked before entry. This process is repeated until a suitable number has been generated.
To create random numbers you are not permitted to use pre-existing Array library methods to
populate the array although you are allowed to use library methods from the Random class to
generate random integers. The generation of random integers has not been covered in the lecture
course but you should be capable of researching this problem and locating the appropriate tool for
this exercise.
Display the contents of the array in the following table format (i.e. ten lines of five numbers):
123 045 436 785 876
456 003