joelnazarene

jsssssssss

Mar 11th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. script>
  2. function stringGen()
  3. {
  4.    var lenn=document.getElementById("num").value;
  5.  
  6.    var arr='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  7.      var a='';
  8.   for(let i=0;i<lenn;i++){
  9.     var pos=parseInt(Math.random()*(61-0));
  10.     a=a+arr[pos];
  11.  }
  12.   document.getElementById("result").innerHTML = a;
  13. return a;
  14. }
  15. </script>
  16. </head>
  17.  
  18.  
  19. <body>
  20.  
  21. <div>  
  22. Enter the length of character:
  23. <input type='text' id
Add Comment
Please, Sign In to add comment