A shell script or any software to genarate random passwords

Hi,

Is there a shell script or any software to genarate random passwords and the passwords expire automatically after a stipulated time period.

Please suggest.

No duplicate post please .Its against Forum rule

http://www.unix.com/unix-dummies-questions-answers/131721-shell-script-software-generating-random-passwords.html\#post302402101

Double post, continued here