How can I generate a string of random characters from a given list of characters?
Private Sub Command0_Click()
Dim pool As String
pool = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
Dim count
count = 0
result.Text = ""
Randomize
Dim cc
cc As New Rnd
Dim strpos
strpos = ""
While count <= Lengthh.Text
strpos = cc.Next(0, pool.length)
result.Text = result.Text & pool(strpos)
count = count + 1
Wend
End Sub