<?php$imagenes = array('uno.jpg', 'dos.jpg', 'tres.jpg');$cuantas = count($imagenes);$aleatorio = rand(0, $cuantas - 1);echo $imagenes[$aleatorio];?>