We can generate random passwords from CLI containing containing a-z, A-Z and 0-9. For example, to generate a random password of 10 character length, type the following:-
egrep -ioam1 '[a-z0-9]{10}' /dev/urandom
sample o/p:
~$]
egrep -ioam1 '[a-z0-9]{10}' /dev/urandom6PTȉFqoj2U