I used this and it worked:
`<?php
$rand_posts = $wpdb->get_results(“SELECT * FROM $wpdb->posts WHERE post_status = ‘publish’ AND post_type=’post’ ORDER BY RAND() LIMIT 1”);
foreach($rand_posts as $post){
setup_postdata($post);
}
?>
<h1><?php the_title(); ?></h1>
<?php the_content(“Read More…”); ?>