daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Mar 26th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function randomString(str) {
  2.   var text = "";
  3.  
  4.   for (var i = 0; i < str.length; i++)
  5.     text += str.charAt(Math.floor(Math.random() * str.length));
  6.  
  7.   return text;
  8. }
  9.  
  10. alert(randomString("ABDV"))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top