Here is a very quick and dirty way to create a random password in Linux.
# head -c6 /dev/urandom | md5sum
bc297ad9b6795c2903872d363f3987ab –
Or if you want something 8 byte long.
# head -c6 /dev/urandom | md5sum | cut -c 1-8
1d7f6469
Or you can always use something like makepasswd