Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function randChars(length, charset) { length=length||8; charset=charset||'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890'; var str=''; while (str.length<length) str+=charset.charAt(Math.random()*charset.length); return str }
- randChars();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement