Vi posto qui il codice che uso:
Codice PHP:$hrarray = array(
1 => '[img]images/home/homepage_banner_a.gif[/img]',
2 => '[img]images/home/homepage_banner_b.gif[/img]',
3 => '[img]images/home/homepage_banner_c.gif[/img]'
);
srand((float) microtime() * 10000000);
$hchiavi = array_rand($hrarray, 2);

Rispondi quotando