Posted By

blackf0rk on 03/12/09


Tagged

random String generate


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

D4RKCODE


Generate a Random String


 / Published in: VB.NET
 

URL: http://codefinds.blogspot.com/2008/10/generate-random-string.html

If you need to generate a random string of mixed characters, this simple function will do it for you. This will return something like this: 80a7a705-9c23-47bc-92b6-2b5c4f9d728d. Which you then can do various string functions to make it the way you want.

  1. Public Function GenerateRandomString() As String
  2. GenerateRandomString= System.Guid.NewGuid.ToString
  3. End Function

Report this snippet  

You need to login to post a comment.