cleaned up syntax errors:
<?php function titoloslide() {
query_posts(array(
'orderby' => 'rand',
'category_name' => 'testimonianze',
'posts_per_page' => 1
));
if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="testimonianzefurgonihome"><a href="#" title="Testimonianze noleggio furgoni KobalRent"><?php the_excerpt(); ?></a></div>
<?php endwhile; endif; wp_reset_query();
}
?>