// Here we create the array to hold all the quotes, then add them below.
string $animation_quotes[] = {
"Here is a quote, notice the comma after the quotation marks.",
"Another quotes is right here.",
"'I can add things like this as well to put the author' ~Jay",
//Note, this last entry does NOT have a comma after the quote.
//If you get a syntax error, check for that sometimes it's easy to forget
"Be creative, put cool stuff in here!"
};
//Declare this as an integer, because rand returns a float
int $quote_choice;
//Get the size of your quotes array
$animation_quotes_size = `size($animation_quotes)`;
//Get a random quote
$quote_choice = `rand 0 $animation_quotes_size`;
//Print it out
print $animation_quotes[$quote_choice];
We've got one set up with tons and tons of animation quotes and it works well. Be sure to load it up with stuff so you don't get bored clicking through it. You'll be surprised how often you click it.
Edit: A related article involving printing your current selection as well as printing the size of the selection.
http://www.scriptswell.net/2009/09/mel-print-size-of-your-current.html