ah…precisely what i needed. thanks.
is there any way to use this code to display multiple random images? i got it working with one, but if i duplicate the < ?php include(ABSPATH . ‘block-random.php’); ?> line, it breaks. i’d like to show five random images if possible…