fmtmalvin

InsultGen

Sep 20th, 2021
685
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function myFunction() {
  2.   var names = ["aRandomGuy"];
  3.   var bodyParts = ["Face", "Hair", "Hands", "Nose", "Eyes", "Mouth"];
  4.   var adjectives = ["Smelly", "Bad", "Stupid", "Boring"];
  5.   var words = ["Mosquito", "Monkey", "Fly", "Cockroach", "Elephant"];
  6.  
  7.   var randomName = names[Math.floor(Math.random() * names.length)];
  8.   var randomPart = bodyParts[Math.floor(Math.random() * bodyParts.length)];
  9.   var randomAdj =  adjectives[Math.floor(Math.random() * adjectives.length)];
  10.   var randomWord =  words[Math.floor(Math.random() * words.length)];
  11.  
  12.   var insultSentence = randomName + "s" + randomPart + " " + randomAdj + " " + randomWord;
  13.   console.log(insultSentence);
  14. }
RAW Paste Data