To use it's is very easy, all you need to do is include either random-min.js (Not fully readable), or random.js (Readable) to your HTML page by using:
And in the return element where you want the random password to go, add this onclickproperty:
onclick="this.innerHTML = GenPassword(length)"
Here's a DEMO: www.oryzhon.com/random
Some example passwords created by it:
15 chars: Rn3t14L0+K%0DR! 10 chars: dn7ix9%1+B 08 chars: !+OI*+90
Read License for licensing and use information.