Thanks Banal! Works like a charm
So this is what I settled on:
In my TestimonialPage.php:
public function RandomTestimonial(){
return DataObject::get_one('Testimonial','',true, 'RAND()');
}
In my TestimonialPage.ss
<div id="Mainbody">$RandomTestimonial.TestimonialImage</div>
Thanks again everyone,
Sam
PS: What is the difference between using false and true in the above function?