Quick one liner for you this new year…
Generate a random 8 character or greater password containing a-z, A-Z and 0-9:
egrep -ioam1 '[a-z0-9]{8}' /dev/urandom
to create longer passwords, replace the numeric value inside of the { } to whatever you would like.
egrep -ioam1 '[a-z0-9]{9}' /dev/urandom
UTohcE?Xb
egrep -ioam1 '[a-z0-9]{10}' /dev/urandom
1222oh2xEX
egrep -ioam1 '[a-z0-9]{11}' /dev/urandom
C2BQFElBgC8
egrep -ioam1 '[a-z0-9]{12}' /dev/urandom
FY7Wb6qasM0a