Handy way of generating random passwords is this:
root# echo `< /dev/urandom tr -dc A-Za-z0-9 | head -c8`
here is an output: XjArHZxb
or
root# date | md5sum
and here is an output: 711325e73eceea2a9899f2a6233ca045 -
also you can use the makepassword for generate a random password but before you do that you should install it onto your system, for example:
root# apt-get install makepasswd
Generating random password with makepasswd:
root# makepasswd
and here is an output: 1of1CQRa