If you look at the file Brian posted, it supports 4 different views. It just happens to default to the Recent Links query. I wanted it to randomly pick a view, so here's how to do it:
Find "$order = 2;" and comment it out (as shown commented out):
Now above it add:
// The order you would like to pull the links in.
// Enter 1 for newest, 2 for most viewed, 3 for most comments, 4 for highest rated
//$order = 2;
Update the switch statement a few lines down with:
list($usec, $sec) = explode(' ', microtime());
return (float) $sec + ((float) $usec * 100000);
$randval = rand();
$order = rand(1, 4);
I just added $modtitle to the switch elements.
$orderby = 'views DESC';
$modtitle = 'Top Links';
$orderby = 'posts DESC';
$modtitle = 'Top Replied Links';
$votequery = 'IF(votenum >= ' . $vboptions['showvotes'] . ', votenum, 0) AS votenum, IF(votenum >= ' . $vboptions['showvotes'] . ' AND votenum> 0, votetotal / votenum, 0) AS voteavg,';
$modtitle = 'Top Rated Links';
$orderby = 'voteavg DESC, votenum DESC';
$orderby = 'dateline DESC';
$modtitle = 'Latest Links';
Now go into the adv_portal_latestlinks template and search and replace $mods[title] with $modtitle.
A random view will now be displayed.