You can create a seperate PHP page and include it on your SHTML page like this:
[!--#include file="random_img.php"--]
The PHP file would look like this:
[?php
$date = date("dmY");
echo("[img src='/dailypics/$date.jpg']");
?]
Remember to replace [ and ] with < and >.
Hope that helps.
