All I want to do is to "scatter" the numbers from 0 to 9 inside a NumPad like the Pin Number Pads I saw on the internet. So far, this is my code:
Private Sub Command3_Click()
For i = 0 To 9
Command1(i).Caption = Int(10 * Rnd)
Next i
End Sub
wherein Command1(i) is the name of each number buttons I have. Each of them has an index equal to their caption, for now. (Well, there isn't really a dependence between the caption and the index, so let's just leave it at that)
Now, as I said, I want to scatter the numbers or rearrange the numbers, and that's why I have that code.
Do you have a better suggestion on this? :/ I just can't get it. I scanned Google for "No Duplication Random numbers" thingy but I just can't get it.
Oh, in case you'll worry about the whole pin number pad program wherein you don't see any labels or text boxes or whatever, just ignore it. I just want what I'm aiming for now.