<?php $fotolar=array("1","2","3","4","5"); $rastgele=$fotolar[array_rand($fotolar)]; echo '<img src="'.$rastgele.'.png">'; ?>