Alternatively, strings /dev/random|head gives some stuff that you can concatenate into a password.
openssl -rand base64 12
On your favorite Unix.