You have three identical prizes to give away and a pool of 10 finalists. The finalists are allocated numbers of 1 to 10. Write down a program to randomly select the numbers of 3 finalists to receive a prize. Make sure not to pick the same number twice. For example picking finalist 3, 15, 29 would valid however picking 3,3,31 could be invalid since finalist number 3 is listed twice and 31 is not a valid finalist number. The following line of code can be used to create a random number between 1 and 30
int num = ( int) ( mat.random()*10)+1; by using textpad