现在应该没有重复了吧。
[CODE]Private Sub Command1_Click()
Cls
Randomize
Dim i As Integer, j As Integer
Dim a(10) As Integer
For i = 0 To 9
start:
a(i) = Int(Rnd * 90)
For j = 0 To i - 1
If a(j) = a(i) Then
GoTo start
End If
Next
Next
For i = 0 To 9
Print a(i)
Next
End Sub[/CODE]