אפשר גם לעשות את זה כך :
PHP קוד:
<?php
$num = rand(0,10);
$picture="<img src=http://theages.superman.ws/History/foolish.JPG>";
$picture2="<img src=http://theages.superman.ws/History/foolish.JPG>";
switch($num)
{
case 1;
echo $picture;
case 1;
echo $picture2;
}
?>