24Eki
Are the SS64.com password generators a good approach?
There are two password generators on ss64.com:
The standard one [Edit: now retired]
The strong one
How they work
I made standalone versions of them, plus copy of the original HTML/Javascript versions, if you want to study them, but here …