si ma a livello di codice come faccio a escludere un elemento nella Rnd?
Il codice attuale è questo:
codice:
Private Sub Command1_Click()
I = 0
Do While I < 155
N = Int(Rnd * 10)
Select Case N
Case 0
sost1(I).Caption = A
Case 1
sost1(I).Caption = B
Case 2
sost1(I).Caption = C
Case 3
sost1(I).Caption = D
Case 4
sost1(I).Caption = E
Case 5
sost1(I).Caption = F
Case 6
sost1(I).Caption = G
Case 7
sost1(I).Caption = H
Case 8
sost1(I).Caption = I
Case 9
sost1(I).Caption = L
End Select
I = I + 1
Loop
End Sub
Private Sub Form_Load()
A = "sostituto1"
B = "sostituto2"
C = "sostituto3"
D = "sostituto4"
E = "sostituto5"
F = "sostituto6"
G = "sostituto7"
H = "sostituto8"
I = "sostituto9"
L = "sostituto10"
End Sub
grazie per la risposta