Mkpass
Mkpass - Command line Secure Password Generator
...You can easily redirect these to a clipboard or copy and paste as needed.
I use a password manager and generate random passwords every time I need one. And while most password managers include a generator, there are times I need one outside of that.
The code is written in java so it should run on any OS that supports it. Lastly, the idea and core code came from a Wikipedia article. I just took this and expanded upon it.
https://en.wikipedia.org/wiki/Random_password_generator
This is a single executable JAR file. While you will need Java installed, there is no need to install this program. ...