Ok, I am a complete moron when it comes to Java, so this question is probably stupid. I am trying to generate 6 random numbers for some lottery calculations, and I can't dream up how to eliminate duplicate answers. What I have done so far is to create an array of 6 integers, and by using math.random and a for loop I have filled the array with random numbers from 1 to 42. I just need some advice on how to eliminate the duplicate numbers that are sometimes generated in the array. Any and all advice is appreciated.....
