#include //For LCD LiquidCrystal lcd(7, 8, 9, 10, 11, 12); //Hookup String phrases[] = /* Known phrases */{"You don't know ", "Thats what she ", "Some call it ", "Did you say ", "You want fries ", "Sorry-allergic", "Don't look", "HELL NO", "Bullshit-", "Dont say I didnt", "Go shake someone", "Take a picture", "Just spit on them &", "Life is full of", "Joke's on you", "I know you are", "Hey, can I call"}; String phrases2[]=/*Continuing known phrases*/ {"shit about shit", "said", "bitching", "something", "with that", "to bullshit", "at me", "", "try again","warn you","else","it lasts longer","say its raining","disappointments","I'm not loved","but what am I","you back"}; String output; String output2; int numberofphrases = 17; //Number of phrases known, must be the same as, well, the number of phrases known int printout; void setup () { randomSeed(analogRead(5)); //Seed for random number generation lcd.begin(16, 2); //16x2 lcd Serial.begin(9600); } void loop () { int z = analogRead(5); //Reading of z axis if (z > 450 && z < 598) //Limits- change if you want to, depending on how hard you shake things { printout = int(random(numberofphrases)); lcd.clear(); output = phrases[printout]; //Chooses phrase lcd.setCursor(0,0); lcd.print(output); //Displays it output2= phrases2[printout]; lcd.setCursor(0,1); lcd.print(output2); } else { lcd.clear(); } Serial.println(z); delay(950); //Waits for a bit }