Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. function getGlee() {
  2. var con = "bcdfghjklmnpqrstvwxyz";
  3. var vow = "aeiou";
  4. var conRan = Math.floor(Math.random()*21);
  5. var conRann = Math.floor(Math.random()*21);
  6. var vowRan = Math.floor(Math.random()*5);
  7.  
  8. return con.substring(conRan, conRan+1) + vow.substring(vowRan, vowRan+1) + con.substring(conRann, conRann+1) + (Math.floor(Math.random()*89)+10);
  9. }
  10.  
  11. var tri = 0;
  12.  
  13. function GetGet() {
  14. var glee = getGlee();
  15. if (glee != "get52") {
  16. tri++;
  17. console.log("Got "+ glee+", not get52, TRY AGAIN!");
  18. setTimeout(function(){
  19. GetGet();
  20. }, 50);
  21. } else {
  22. console.log("Glee received after "+tri+" tries!");
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement