revise:
http://codex.wordpress.org/Template_Tags/get_posts
what is the resulting output by your code?
@alchymyth: it results the same post which is currently displaying on the main content area.
try and add the setup_postdata($post);
part as shown in the example in the codex link;
foreach( $rand_posts as $post ) : setup_postdata($post); ?>
@alchymyth: Thanks a lot it solves my problem…
thank you.
gautam