This command will generate a random password using all letters and numbers that is 20 characters wrong based on /dev/urandom (for the most truly random output).
echo `< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-20};echo;`
linux, bash, generate, password, dev, urandomthis, characters, urandom, output, echo, tr, dc, _a, z,