Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var lenn=document.getElementById("num");
- var arr='abcdefghijklmnopqrstuvwxyz0123456789';
- var a='';
- for(let i=0;i<lenn;i++){
- var pos=Math.random()*(35-0);
- a=a+arr[pos];
- }
- document.getElementById("demo").innerHTML = a;
Add Comment
Please, Sign In to add comment