title: How can I make so that the order of this loop's output is random?
body: <p>In my Wordpress site, my <code>taxonomy-product-category.php</code> template has the following loop for loading posts into the page:</p>
  
  <pre><code>&lt;?php if (have_posts()) : ?&gt;
  &lt;?php while (have_posts()) : the_post(); ?&gt;
  </code></pre>
  
  <p>However, I want the posts to be randomly ordered rather than following a specific order like date added.</p>
  
  <p>How can I modify this loop to do it?</p>