php ise şöyle yapabilirsin
<?
$rand=rand(1,2);
if($rand=="1"){?>
1. Reklam Kodu
<?}else{?>
2. Reklam Kodu
<?}?>

iyigünler