Aha, I understand! Thank you for the explanation!
Thanks.
Joe
There was another comma:
query_posts(array(
'orderby' => 'rand',
'showposts' => 1,
'meta_query' => array(
array(
'key' => 'post_in_home_gallery',
'compare' => '==',
'value' => '1',
)
)
));