I actually managed to figure it out last night after I found that WordPress has core functionality for querying and displaying random posts, something I’ve never needed to do before.
In /plugins/swift-framework/includes/swift-slider/inc/ss-display.php, I added the ‘orderby’ => ‘rand’ to the code below:
/* SLIDE QUERY
================================================== */
$slide_count = intval( $slide_count );
$ss_args = array(
'post_type' => 'swift-slider',
'post_status' => 'publish',
'swift-slider-category' => $slide_category,
'orderby' => 'rand',
'posts_per_page' => $slide_count,
);
$swift_slider_slides = new WP_Query( $ss_args );
$slides_count = $swift_slider_slides->found_posts;
if ( $slides_count < $slide_count ) {
$slide_count = $slides_count;
} else if ( $slide_count === 0 ) {
$slide_count = $slides_count;
}
I’ll just need to make a note to myself about this change for when I update the theme.