Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function pwm(length) {
- var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz23456789'.split('');
- var password = '';
- for (i = 0; i < length; i++) {
- password += characters[Math.floor(Math.random() * characters.length)];
- }
- return password;
- }
Add Comment
Please, Sign In to add comment