Site icon Hip-Hop Website Design and Development

Order customers by random not working?

So I am attempting to checklist my wordpress person id’s every time in a random order.

Proper now I’ve this, however for some motive, 'orderby' => 'rand' is just not randomizing the checklist.

<?php 

$args  = array(
    'meta_key' => 'energetic',
    'meta_value' => 'sure',
    'quantity' => 99999,
    'orderby' => 'rand',
);
 
$my_user_query = new WP_User_Query( $args );
$publishers = $my_user_query->get_results();
 
if ( ! empty( $publishers ) ): ?>

<?php foreach ( $publishers as $writer ): 
        
setup_postdata( $writer )
        
?>


<?php echo $publisher->ID; ?>


<?php endforeach; ?>
    
<?php wp_reset_postdata(); ?>

<?php endif; ?> 

I’ve tried 'order' => 'rand' which isn’t appropriate as to my data.

To make it possible for the above array works, I’ve tried:

'order' => 'ASC' and 'order' => 'DESC'

each labored nice.

I assume there’s one thing fallacious with my rand code line.

I’ve additionally heard that it is attainable to make use of shuffle($customers);, however I don’t know the place and the way to implement.

Need assistance.