in true honesty, i've never deal with srand(), but I thought it was a simple question, that i might be able to answer.
I've noticed that if you try to echo the value of $seed you don't get one! I'm not exactly sure why, but I think i have a reason. I think it is because srand() isn't really suppose to give you a value, it somehow helps the rand() function to get a random value.
now once I added the $random var using rand() i did get an output.
if i removed the $seed var, i still got an output for $random.
I might be missing something, but I didn't notice a correlation between srand() and rand(), which i thought there was one... ?
so it basically comes out that you have to do something like this:
$seed = srand((double) microtime() * 1000); // you can optionally remove this line
// $random = rand(); // any whole positive number, I guess between the max $seed range....
$random = rand(1,20); //values between 1-20
$result = mysql_query("SELECT * FROM mash_banners ORDER BY RAND($random) LIMIT 1");
this should give you something....
my sources: (also check out the user comments)
notice the use of rand() in the example
http://us3.php.net/manual/en/function.srand.php
look for the rand() function.
http://www.mysql.com/doc/en/Mathematical_functions.html
hope that helps.