Advertisement
Guest User

Untitled

a guest
Sep 15th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var chars = ['Q','W','E','R','T','Y','U','I','O','P','A','S','D','F','G','H','J','K','L','Z','X','C','V','B','N','M','1','2','3','4','5','6','7','8','9','0'];
  2. var key = "";
  3.  
  4. for(i = 0; i < 4; i++) {
  5.     key += chars[Math.floor(Math.random() * (chars.length - 0))];
  6. }
  7. key += "-";
  8.  
  9. for(i = 0; i < 4; i++) {
  10.     key += chars[Math.floor(Math.random() * (chars.length - 0))];
  11. }
  12. key += "-";
  13.  
  14. for(i = 0; i < 4; i++) {
  15.     key += chars[Math.floor(Math.random() * (chars.length - 0))];
  16. }
  17. key += "-";
  18.  
  19. for(i = 0; i < 4; i++) {
  20.     key += chars[Math.floor(Math.random() * (chars.length - 0))];
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement