Is this password-generator sufficient?
aneelkkhatri.github.io
aneelkkhatri.github.io
Math.random() does not provide cryptographically secure random numbers. Do not use them for anything related to security. Use the Web Crypto API instead, and more precisely the window.crypto.getRandomValues() method