Dim rand As New Random Dim int As Integer Dim count As Integer Dim counter As Integer = 0 Dim pass As String = "" Do Until counter = 500 Do Until count = 6 int = rand.Next(2) If int = 1 Then pass = pass & alpha(rand.Next(25)) Else pass = pass & numeric(rand.Next(9)) End If count = count + 1 Loop ListBox1.Items.Add(pass) pass = "" counter = counter + 1 Loop
Alpha() and Numeric() have already been populated with the appropriate vaules.
~Mac

New Topic/Question
Reply




MultiQuote



|