many thanks!!!!!! worked like a charm, although it had a syntax error at first the function needed to be:
function RandomSlideshowItems() {
return DataObject::get("SlideshowItem", "", "RAND()", "");
}
I guess I should do a few more basics! thanks for the rapid response.
-----
On another note is it possible to limit the amount of data objects that are pulled from the DB, i.e. I upload 10 images but only 5 random images are chosen to be shown in the slideshow?