Advertisement
Guest User

Untitled

a guest
Jun 20th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. var pepo = "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm_-";
  2.  
  3. function makeid()
  4. {
  5. var text = "";
  6. var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  7.  
  8. for( var i=0; i < 20; i++ )
  9. text += possible.charAt(Math.floor(Math.random() * possible.length));
  10.  
  11. return text;
  12. }
  13. setInterval(function(){
  14. var pepoo = "/#" + makeid()
  15. chat.socketId = pepoo
  16. chat.sendMessage("pepo")
  17. console.log(chat.socketId)
  18. }, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement