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)
pwd=pwd & id
pwd=pwd & right(str,2)
pwd=pwd & second(time)


The random password is <% =pwd %>

Now there - aint that simple    !!