Tamer_Ahmed Posted September 5, 2004 Posted September 5, 2004 hi every one how can i generate random passwrd from character and numbers Quote
Administrators PlausiblyDamp Posted September 5, 2004 Administrators Posted September 5, 2004 how about something like Public Function GetRandomString(ByVal numberOfCharacters As Integer) As String Dim r As New Random Dim b(numberOfCharacters) As Byte For x As Integer = 0 To numberOfCharacters - 1 b(x) = r.Next(32, 126) Next Return System.Text.ASCIIEncoding.ASCII.GetString(b) End Function Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.