Firstly thank you in advance for your help.
I am creating a directory site. My client needs featured directory listings to appear before standard listing but they also need to be in a random order (so that the first signed up member doesn't always appear at the top of the list). I have a custom field called 'account_level' with two values 'featured' and 'standard'. My loop currently shows featured posts first with standard following but I can't quite work out how to randomise the order whilst still displaying the featured posts first. My code thus far:
<?php global $wp_query; query_posts(array_merge(array( 'orderby' => 'meta_value', 'order' => 'ASC', 'meta_key' => 'account_level' ), $wp_query->query)); while ( have_posts() ) : the_post(); ?>