In Linux, you may easily generate a random password through command.
To done it, you may use the mkpasswd utility.
$ mkpasswd
HXyt*m22j
Use -l to define the length of the password text as the password length by default is 9.
$ mkpasswd -l 15
y6lejl3ltm=bAKf