I can generate random numbers in ASP like this 45648794646 but i want something like this adkljaflkj898ad08fafadf any idea how can i do it in ASP ?
<% Function RndPassword(vLength) ' generate a random strong password of given length. For x=1 To vLength Randomize vChar = Int(89*Rnd) + 33 If vChar = 34 Then 'check if it is quote character, replace it with a single quote vChar = 39 End if RndPassword = RndPassword & Chr(vChar) Next End Function %> Code (markup): usage: <% RndPassword(23) %> Code (markup): I left all non-alphabetical characters too but, you can easily remove them and let only the 1-0 a-z
Also check the following articles for more info http://www.tek-tips.com/faqs.cfm?fid=5340 http://www.w3schools.com/Vbscript/tryit.asp?filename=vbdemo_rnd HTH