download password.py file and put it in your prefered location
On mac add this line to your .zshrc file
genpass='Python3 <<<"file path">>>/password.py'
USE:
genpass "length of password"
e.g.,
genpass 10
this will output "Password is saved to your clipboard"
the password is saved to your clipboard. All you need to do is paste the password "Ctrl V"