Generate random password string with requirements in javascript

前端 未结 20 1777
夕颜
夕颜 2020-12-07 07:56

I want to generate a random string that has to have 5 letters from a-z and 3 numbers.

How can I do this with JavaScript?

I\'ve got the following script, but

20条回答
  •  情书的邮戳
    2020-12-07 08:06

    Try this, it works. Download script to your javascript application and call function randomPassword() https://gist.github.com/enishant/4ba920c71f338e83c7089dc5d6f33a64

提交回复
热议问题