If you, the web designer, want to generate Random (but not necessarily unique - think about it, why would unique be necessary ?) Passwords, for any reason, the ASP (Active Server Page) shown below will maybe give some ideas.
If you want to see it working click here - when the page appears, simply keep pressing the refresh/reload button on your browser.
<% id = minute(time) r=rnd * second(time) for i = 0 to 500 if cint(r)>0 and cint(r)<26 then str=str +chr(97 + cint(r)) r=rnd * 2 * second(time) next pwd=left(str,2) pwd=pwd & id pwd=pwd & right(str,2) pwd=pwd & second(time) %> <HTML> <HEAD> <TITLE>RANDOM PASSWORDS</TITLE> </HEAD> <BODY> The random password is <% =pwd %> </BODY> </HTML>
Now there - aint that simple !!