Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const genCode = (len) => {
- let text = "";
- let possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
- for (let i = 0; i < len; i++)
- text += possible.charAt(Math.floor(Math.random() * possible.length));
- return text;
- }
Add Comment
Please, Sign In to add comment