Advertisement
Guest User

Untitled

a guest
Jul 27th, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. function randString()
  2. {
  3. var text = "";
  4. var possible = "abcdefghijklmnopqrstuvwxyz";
  5.  
  6. for( var i=0; i < 15; i++ )
  7. text += possible.charAt(Math.floor(Math.random() * possible.length));
  8.  
  9. return text;
  10. }
  11. document.getElementById("registration_email").value = randString() + "@" + randString() + ".com";
  12. document.getElementById("registration_username").value = randString();
  13. document.getElementById("registration_password").value = randString();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement