提供个思路,以下代码可以生成16个不重复的字符:
Dim j As String = ""For i As Integer = 1 To 16 Do Dim k As String = Rand.NextString(1) If j.Contains(k) = False Then j = j & k Exit Do End If LoopNextOutput.show(j)