openssl rand -base64 n
Where n is the password length; like 16 or something.
If you don’t have openssl you can get it through pip3, or homebrew it’s not too hard.
Because Windows 10 sucks, it takes a lot more to get it to work so you might as well just download a password generator
OpenSSL is a software library for applications that secure communications over computer networks against eavesdropping or need to identify the party at the other end. It is widely used in Internet web servers, serving a majority of all web sites. Wikipedia