Vi posto qui il codice che uso:

Codice PHP:
$hrarray = array(
=> '[img]images/home/homepage_banner_a.gif[/img]',
=> '[img]images/home/homepage_banner_b.gif[/img]',
=> '[img]images/home/homepage_banner_c.gif[/img]'
);
srand((float) microtime() * 10000000);
$hchiavi array_rand($hrarray2);