[WebMethod(Description="Returns a quote as a string.")] public string GetQuote() { string[] myProverbs = { /* 0 */ "I am prepared for the worst, but hope for the best. (Benjamin Disraeli)", /* 1 */ "Lost time is never found again. (Ben Franklin)", /* 2 */ "History is a pack of lies about events that never happened told by people who weren't there. (George Santayana)", /* 3 */ "Tact is the ability to describe others as they see themselves. (Abe Lincoln)", /* 4 */ "Always remember, a cat looks down on man, a dog looks up to man, but a pig will look man right in the eye and see his equal. (Winston Churchill)", /* 5 */ "What's left at the bottom of the bag when it reaches you. (Definition of microchips)", /* 6 */ "People who know a great deal about very little and who go along knowing more and more about less and less, until finally they know practically everything about nothing. (Definition of experts)", /* 7 */ "Jazz is not dead, it just smells funny. (Frank Zappa)", /* 8 */ "Soap and education are not as sudden as a massacre, but they are more deadly in the long run. (Mark Twain)", /* 9 */ "Never look at the trombones. You'll only encourage them. (Robert Strauss on conducting an orchestra)", /* 10 */ "Bad spellers of the world, untie!", /* 11 */ "There’s a sucker born every minute. (P. T. Barnum)", /* 12 */ "You can fool some of the people all of the time, and all of the people some of the time, but you cannot fool all of the people all of the time. (Abe Lincoln)", /* 13 */ "Give me six hours to chop down a tree, and I will spend the first four sharpening the axe. (Abe Lincoln)", /* 14 */ "What kills a skunk is the publicity it gives itself. (Abe Lincoln)", /* 15 */ "People are just as happy as they make up their minds to be. (Abe Lincoln", /* 16 */ "I don't like that man. I must get to know him better. (Abe Lincoln)", /* 17 */ "It's better to be silent and be thought a fool, than to speak and remove all doubt. (Abe Lincoln)", /* 18 */ "Your theory is crazy, but it's not crazy enough to be true. (Niels Bohr)", /* 19 */ "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. (A. Einstein)", /* 20 */ "Our scientific power has outrun our spiritual power. We have guided missiles and misguided men. (Martin Luther King)", /* 21 */ "Anyone who attempts to generate random numbers by deterministic means is, of course, living in a state of sin. (John von Neumann)", /* 22 */ "For NASA, space is still a high priority. (Dan Quayle)", /* 23 */ "Usually, terrible things that are done with the excuse that progress requires them are not really progress at all, but just terrible things. (Russell Baker)", /* 24 */ "The trouble with the rat race is that even if you win, you're still a rat. (Lily Tomlin)", /* 25 */ "The world is governed more by appearance than realities, so that it is fully as necessary to seem to know something as to know it. (Daniel Webster)", /* 26 */ "A lot of fellows nowadays have a B.A., M.D., or Ph.D. Unfortunately, they don't have a J.O.B. (Fats Domino)", /* 27 */ "Ya gots to work with what you gots to work with. (Stevie Wonder)", /* 28 */ "I have not failed. I've just found 10,000 ways that won't work. (Thomas A. Edison)", /* 29 */ "Good judgment comes from experience, and often experience comes from bad judgment. (Rita Mae Brown)", /* 30 */ "An election is coming. Universal peace is declared, and the foxes have a sincere interest in prolonging the lives of the poultry. (T. S. Eliot)", /* 31 */ "Ninety percent of the politicians give the other ten percent a bad reputation. (Henry Kissinger)", /* 32 */ "There ain't no answer. There ain't gonna be any answer. There never has been an answer. That's the answer. (Gertrude Stein)", /* 33 */ "Any sufficiently advanced technology is indistinguishable from magic. (Arthur C. Clarke)", /* 34 */ "War is the unfolding of miscalculations. (Barbara Tuchman)", /* 35 */ "Holding on to anger is like grasping a hot coal with the intent of throwing it at someone else; you are the one who gets burned. (Buddha)", /* 36 */ "It is better to travel well than to arrive. (Buddha)", /* 37 */ "Age is an issue of mind over matter. If you don't mind, it doesn't matter. (Mark Twain)", /* 38 */ "Be careful about reading health books. You may die of a misprint. (Mark Twain)", /* 39 */ "Half the lies they tell about me aren't true. (Yogi Berra)", /* 40 */ "Always go to other people's funerals, otherwise they won't come to yours. (Yogi Berra)", /* 41 */ "I wish I had an answer to that because I'm tired of answering that question. (Yogi Berra)", /* 42 */ "The game's isn't over until it's over. (Yogi Berra)", /* 43 */ "I argue very well. Ask any of my remaining friends. I can win an argument on any topic, against any opponent. People know this, and steer clear of me at parties. Often, as a sign of their great respect, they don't even invite me. (Dave Barry)", /* 44 */ "I have been a gigantic Rolling Stones fan since approximately the Spanish-American War. (Dave Barry)", /* 45 */ "Don't ever take a fence down until you know why it was put up. (Robert Frost)", /* 46 */ "You have to expect things of yourself before you can do them. (Michael Jordan)", /* 47 */ "The only correct actions are those that demand no explanation and no apology. (Red Auerbach)", /* 48 */ "If you hear a voice within you say 'you cannot paint,' then by all means paint, and that voice will be silenced. (Vincent van Gogh)", /* 49 */ "Computers are useless. They can only give you answers. (Pablo Picasso)", /* 50 */ "Every act of creation is first an act of destruction. (Pablo Picasso)" }; int myRand = 0; int numstrings = 1; try { numstrings = myProverbs.GetLength(0); Random r = new Random(); myRand = r.Next(numstrings); } catch { } return myProverbs[myRand]; } // end GetQuote() method