$Id$

Quotes:Random is a simple helper module to facilitate efficient retrieval of a
single quote from among those quotes which are visible to the anonymous user.
This is useful for showing a single random quote somewhere on the page, without
the overhead associated with "order by RAND()".

The two functions intended for general use are as follows:

/**
 * Returns the nid of a randomly selected quote.
 */
function randomquote_nid()

/**
 * Returns a randomly-selected quote (summary view), linked to its full node,
 * and classed as "randomquote-link" for easy styling.
 */
function randomquote_link()

For efficiency's sake, randomquote_link() doesn't call any theme functions.
The following code will output a fully-themed random quote:

  echo theme('quotes_quote',array('node' => node_load(randomquote_nid())));
