Advertisement
Guest User

Untitled

a guest
Mar 27th, 2016
1,148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.04 KB | None | 0 0
  1. var aleatorio = Math.floor(Math.random()*3);
  2. switch (aleatorio){
  3. case 0:
  4. var wordpool = [["street","sidewalk","corner","door","window","hood","slum","skyscraper","car","truck","guy","girl","job","flower","light","cigarette","rain","jackhammer","driver","worker","cat","dog","thug","pimp","whore","building","house","motorcycle","gas station","shanty town","drunk","junkie","drug"],
  5. ["action","work","noise","desolation","death", "life","love","faith","anger","exhaustion","courage","depression","freedom","beauty","idea","kindness","weekend","war","fear","sorrow"],
  6. ["get","grab","shove","love","desire","buy","sell","fight","hustle","drive","attack","beat","believe","bleed","call","crack","flirt","reassure","soothe","debase","rip","kill"],
  7. ["talk","gab","walk","run","stop","eat","grow","shrink","shop", "work","arrive","die","laugh","cry","fall","set"],
  8. ["big","small","condemned","decayed","old","fast","cold","hot","dark","dusty","grimy","dry","rainy","misty","noisy","faceless","dead","ancient","modern","deafening","empty","different","strange"],
  9. ["quickly","loudly","calmly","quietly","roughly","anxiously","doubtfully","happily","nervously"],
  10. ["o","oh","ooh","ah","lord","god","damn","jesus","satan","zeus","my god","hades"]];
  11. break;
  12. case 1:
  13. var wordpool = [["sea","ship","sail","wind","breeze","wave","cloud","mast","captain","sailor","shark","whale","tuna","tsunami","storm","hurricane","seashell","pirate","lad","girl","gull","reef","shore","mainland","moon","sun","island","boat"],
  14. ["adventure","courage","endurance","desolation","death","life","love","faith","bravery","calm","awe","chaos","luck","mercy","omen","peace","dedication","determination"],
  15. ["command","view","lead","pull","love","desire","fight","control","discover","reach","recognize","remember","search","shout"],
  16. ["travel","sail","wave","grow","rise","fall","endure","die","hiccup","revolt","swim","vomit","collapse","disappear","emerge","sleep"],
  17. ["big","small","old","cold","condemned","decayed","warm","sunny","rainy","misty","clear","colossal","stormy","rough","lively","dead","beaten","tired","gloomy","wide","open"],
  18. ["swiftly","calmly","quietly","roughly","loudly"],["o","oh","ooh","ah","lord","god","wow","golly gosh","golly","gosh","neptune","poseidon"]];
  19. break;
  20. case 2:
  21. var wordpool = [["hay","animal","barn","bison","buffalo","cattle","combine","crop","farm","farmer","farmhouse","gate","harvester","haystack","horse","rake","rooster","scarecrow","shepherd","vegetable","windmill","carrot","corn","pumpkin"],
  22. ["death","life","love","faith","exhaustion","freedom","dedication","determination","honor","hope","humility","warmth","despair","sorrow"],
  23. ["harvest","feed","herd","breed","farm","cultivate","collect","drive","prepare","smell","taste","get","grab","buy","sell","pull","control"],
  24. ["build","harvest","carry","check","clean","dig","drag","grow","rise","fall","die","live"],
  25. ["big","small","old","new","sunny","broad","colorful","colossal","condemned","decayed","healthy","loose"],
  26. ["quickly","loudly","calmly","quietly","roughly","gently","astutely"],
  27. ["o","oh","ooh","ah","lord","god","damn","jesus","my god","golly"]];
  28. break;
  29. }
  30. var sentencePattern = ["the 4 0 5 2s the 0",
  31. "4, 4 0s 5 2 a 4, 4 0",
  32. "1 is a 4 0",
  33. "6, 1!",
  34. "0s 3!",
  35. "the 0 3s like a 4 0",
  36. "0s 3 like 4 0s",
  37. "why does the 0 3?",
  38. "3 5 like a 4 0",
  39. "1, 1, and 1",
  40. "where is the 4 0?",
  41. "all 0s 2 4, 4 0s",
  42. "never 2 a 0",
  43. "near the 0 where the 4 0s 2 4 1s",
  44. "4 0s, 4 0s"];
  45. var i, j, k;
  46. var estrofa = sentencePattern[Math.floor(Math.random()*15)];
  47. sentences = Math.floor(Math.random()*4);
  48. for(i=0;i<=sentences;i++){
  49. estrofa = estrofa + "\n" + sentencePattern[Math.floor(Math.random()*15)];
  50. for(j=0;j<6;j++){
  51. for(k=0;k<7;k++){
  52. estrofa = estrofa.replace(k,wordpool[k][Math.floor(Math.random()*wordpool[k].length)]);
  53. }
  54. }
  55. }
  56. twit.sendTweet(estrofa);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement