Prevent randomly generated number appear twice

I've made a timer and six labels. Then a number is being generated for each label seperately.
After testing how it works, I found out that sometimes two same numbers are being generated at the same time.

In the picture attachment you can see how two numbers were generated at the same time. I was wondering if it's possible to prevent the random generation of two numbers at the same time for the numbers in the blue box.

Another thing I forgot to consider is that I need the first five numbers to match regardless of the position, as long as the five numbers on the bottom match those on the top it's good. The last one is an exception and needs to be matched to be the same in that possision.

I would suggest that instead of shuffling you start with a list of all possible numbers. Then for each new selection you just generate a random index from 0 to list.Count - 1. Once you retrieve the number at that index, remove it from the list.

From my understanding, you want the user to enter in 5 numbers, and the program gives back a random perumation of the numbers. ie, if the user gives 5, 7, 1, 2, 9 an example of an output would be 7, 5, 9, 1, 2.

How would that be done by code, I never did that before?

Make an array. Store the users input into the array. Suffle using the described shuffling algorithm. Display the shuffled array.

If your asking us to do it for you, we wont. If we did, you wouldn't learn.

Jim's suggestion is a variation of the Fisher–Yates shuffle (instead of swapping, he's storing it in a seperate list or displaying it directly). The final effect is the same (unless you're trying to generate a random subset).

It is exactly what I am doing.
The user can enter any number 1 - 75 and not using the same number more than once. Then the code above generates 5 sets of random numbers also 1 - 75. The timer will stop generating numbers as soon as the five numbers were generated randomly.

So if the user will enter: 3 21 17 29 66
as soon as the program gets: 66 17 21 3 29
the program will stop

So you know which numbers you have left to match. That way if you get a number, and it's not in the list, then the number is either irrelevant or already found.

To make myself clear, all five numbers are being generated at the same time over and over non stop even if one of the numbers is matched.
The user is only allowed to enter 1-75, and the computer generates the numbers 1-75 as well, so I don't see what you mean by:

First off if you don't want to allow 0 to be generated you need to use this:
Dim value As Integer = CInt(Int((76 * Rnd()) + 1)).
Here is what I would do: Grab the numbers from the user,leave these in the textboxes but also copy them into an array and sort them there. Generate five random numbers out of the 75, put these into the other boxes and then copy them into another array - sort them there. If both arrays match leave them as they are in the textboxes, if they dont match clear the random array clear the textboxes and generate the next five numbers etc. Once the sorted boxes matcxh you are done, stop the timer and see how long it took.

That's exactly what I've changed the code to, however, I was not able to prevent two same numbers to be generated at the same time.

I run the program and sometimes get two same #'s:

71 07 10 07 48 10

In the case above, two 10's and two 7's were generated at the same time.

Is there a way to solve this nuiance OR make a pre-code which will delete the generated number if it contains repeated number before comparing to the user's input? So if the generated code does not contain a repeated number, then compare it to the user's input. At least this is one of the ways I see to solve this? Effective? Don't know if there are any better ways than that.

You generate the five numbers in the following way. First number generated you put in the first textbox and also you copy it in an array. 2nd number you put in the array and sort it. There are thre possibilities: <,> and =.
So you start off with: if it is equal, forget it and get the next number. If it is smaller,move it before the first number and and put it in the second textbox and so on. Once you have the five numbers compare the this sorted array to the one you have generated, sorted from the user input. If they match you are done other wise start over again in your loop.