I've used these two function before to generate random passwords. I'm not sure if this is what you're looking for but it may put you in the right direction.
Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as, 'urgent' actually get FEWER responses?).
Comment