Random HTML for Fun and Profit

Here is a quote from a file:

"If man evolved from the ape, how come there are still apes around? Some ofthem were given choices."

The Random includer works by opening up a file, picking a random line in the file and including that in the HTML output. The line may have HTML in it and can be several thousand characters long (although we'd encourage you to keep it under 255 characters to make it easier for us to help you debug).

The syntax of the random include is a variation on the preprocessor's normal include:


<!--#include file="demo.quotes" random="53" -->

The #include file syntax is exactly the same as the preprocessor. What's different is the argument random="xxx". The number (which must be in quotes) is the number of lines in the file. We'll pick a random number between 1 and the one you give, read to that line, and return that line to the end user as part of the HTML.