//gather hype and shake
$hype = file_get_contents("buzz.txt");
$hypeArray = explode("\n", $hype);
shuffle($hypeArray);
//link a random selection of hype items to random search sites
$linkPrefixes = array(
"http://www.google.com/search?q=",
"http://search.blogger.com/?q=",
"http://www.technorati.com/search/",
"http://http://blogs.icerocket.com/search?q=",
"http://www.blogpulse.com/search?query=",
"http://www.feedster.com/search/",
"http://www.bloglines.com/search?q=brownpau",
);
$x = rand(2,7);
$randomHype = array_rand($hypeArray, $x);
for ($c=0; $c < $x; $c++) {
$hypeArray[$randomHype[$c]] = sprintf('%s',
$linkPrefixes[rand(0,count($linkPrefixes)-1)],
$hypeArray[$randomHype[$c]],
$hypeArray[$randomHype[$c]]);
}
// a random selection of hype items
$x = rand(5,15);
$randomHype = array_rand($hypeArray, $x);
for ($c=0; $c < $x; $c++) {
$tag = (rand(0,1)) ? "em" : "strong";
$hypeArray[$randomHype[$c]] = sprintf("<%s>%s%s>",
$tag, $hypeArray[$randomHype[$c]], $tag);
}
//make first hype item a header
$hypeArray[0] = sprintf("%s
", $hypeArray[0]);
//implode hype
$hypeRemix = implode(" ", $hypeArray);
//roger, moon base, we are go for launch
?>
[Buzz 2.0!]
=$hypeRemix;?>