Creating a random String

Results 1 to 2 of 2

Thread: Creating a random String

  1. #1
    ActiveALLI OZ.COM Guest

    Default Creating a random String

    Hi.<BR>I need to figure out how i create a 8 character long string that contains random Alphanumeric and numeric characters. <BR>somehthing that would generate something like this -&#062; "Auil28Lo"<BR>This would be used to generate passwords for users .. Any suggestions and solutions are appreciated.<BR><BR>Thanks in advance. <BR>alli@oz.com

  2. #2
    Join Date
    Dec 1969
    Posts
    168

    Default RE: Creating a random String

    &#060;%<BR>Function makepwd(s)<BR>&#039 Where "s" is the number of characters to make the password<BR>&#039 Capital and lower case "L", Capital "O", zero and one are excluded<BR>&#039 to avoid user confusion.<BR>Dim A<BR>A = Array("A","a","B","b","C","c","D","d","E","e","F", "f","G","g","H","h","J","j","K","k","M","m","N","n ","o","P","p","Q","q","R","r","S","s","T","t","U", "u","V","v","W","w","X","x","Y","y","Z","z","2","3 ","4","5","6","7","8","9")<BR>makepwd = ""<BR>for i=1 to s<BR> Randomize<BR> var= INT((54 * RND) + 1)<BR> makepwd= makepwd & A(var)<BR>next<BR>End Function<BR>%&#062;<BR><BR>Hope this helps ... Cheers!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •