ciao, x es.
codice:
<script type="text/javascript"> 
var imm = new Array(); 
imm[0] = "01.jpg";
imm[1] = "02.jpg"; 
imm[2] = "03.jpg"; 
// ...etc...

var txt = new Array();
txt[0] = "descrizione prima foto";
txt[1] = "descrizione seconda foto";
txt[2] = "descrizione terza foto";
// ...etc...

var num = Math.floor(Math.random()*imm.length); 
document.write("[img] + imm[num] + [/img]<br \/>[b]" + txt[num] +"<\/strong>"); 
</script>