Easy thing would be to override comment query and set orderby
property to rand
.
function wpse381090_comment_query_rand( $args ) {
$args['orderby'] = 'rand';
return $args;
}
add_filter('comments_template_query_args', 'wpse381090_comment_query_rand');