People always u2u me or mention that my avatar changes constantly (er, well, it used to when my domain was alive). And now I'll tell you guys how I did it.

There are TWO ways of doing this.
OPTION 1: Using your own webspace and bandwidth to host all of the avatar files. I used this one for the longest time. It ate up about 1 GB of bandwidth each month, so you'll probably only be able to do this if you are the one who pays for your webspace. (Hostees will probably not use this method, unless your host is REAAAAAALY nice.)
OPTION 2: Sign up for a free site that generates a random script. We will be using TekTek's Random (sig) Image

*NOTE*: You can use a rando-avatar in XMB (like in TeaHouse, Candy Town, and Harmonyland v. 2) but you cannot use it in something like the old Harmonyland.
- For OPTION 1: Make sure you have enough bandwidth to spare.
- For OPTION 2: An image host that allows direct linking (like Photobucket).
ONLY FOLLOW THIS TUTORIAL IF YOU FUFILL THE CRITERIA NEEDED. If you don't, then skip to 'The Tutorial - OPTION 2

First you need the 'random.php' file. Or any other name will do, because it's just what you will link to. Copy and save the following code as 'random.php' or w/e.

<?php
$dir = '.'; // '.' means: the current directory this script resides
$array = array(); // nothing

mt_srand((double)microtime()*1000000);
$handle = opendir($dir);

while (false !== ($file = readdir($handle))) {
$extention = strtolower(substr(strrchr($file,"."),1));
if($extention == 'jpg' || $extention == 'jpeg' || $extention == 'jpe' || $extention == 'gif' || $extention == 'png' || $extention == 'bmp'){
$array[] = $file;
}
}

$count = count($array);
$num = mt_rand(0, ($count-1));

if($count > 0){
$size = getimagesize($array[$num]);
$stream = fopen($dir.'/'.$array[$num], "rb");
if($size && $stream){
header("Content-type: ".$size['mime']);fpassthru($stream); //fpassthru closes the stream by itself
exit();
}
}else{
echo 'no images';
}
?>

After you've saved your 'random.php' file, create a new directory (folder) on your webspace for all of your avatar pictures. In my case, I had the folder name 'random'. Upload your 'random.php' file IN THAT DIRECTORY and also upload ALL OF YOUR AVATAR IMAGES IN THE SAME DIRECTORY.

Then you use the url "http://domainnamehere/randomfoldername/random.php" as the image link in XMB. For example, I used "http://doumeki.org/random/random.php" for my URL.

Adding more images is simple, just upload images into the same directory and they are automatically added in the script. It's VERY easy to do, and doesn't take a lot to maintain.
FOLLOW THIS TUTORIAL IF YOU CANNOT DO OPTION 1.

First go to TEKTEK.org and click on Rando (sig) Image creator. You'll be prompted to sign up for an account. DO THIS. It's very easy and you don't even have to activate it or anything. Then it will take you to the page.

I suggest you host all of your image files on Photobucket. That's what I'm doing. (Sorry, too lazy to take screencaps, but this tut. should be easy to follow). Anyways I uploaded my files to PB.

Copy the IMG link to the place where it says "Add an Image" and click add image. Do this for other images too (it should be self explanatory).

When you're done uploading, take the code it gives you ([img]http://r.tektek.org/?r=103185[/img]) and just take the stuff that doesn't include the IMG tags. That's your image link.

VOILA YOU ARE DONE!







And this tutorial is finished. Tag me if you still need help.