Help with my first program. Random number gen.

Ok this is what I am trying to do right now it make a set of random numbers. Kinda like a lotto picker. Two groups one for the first five numbers. One for the second group. I have that all good and well. But the issue is.. Some times they repeat. I'm guessing I need to stick a boolean in there? Here is the code I have.