If you ever have the requirement to auto-generate passwords that must meet certain security guidelines such as having at least one number, a special character etc. then take a look at jpwgen. It is written in Java and is based on pwgen (unix).
What is nice about it is that you can use it both as a command line program and/or as a library within your applications.
By the way, if you need a GUI tool for Windows to generate passwords, check out pwgen-win