title: how i can show random products on home page in shopify
body: <p>Product should be changed on page refresh</p>
  
  <p>Please check below code</p>
  
  <pre><code>&lt;div id="showcase"&gt;
  {% if collections.frontpage-1.products.size &gt; 0 %}
  {% capture index %}{{ 'now' | date: '%S' | times: collections.frontpage-1.products.size | divided_by: 60 }}{% endcapture %}
  {% for product in collections.frontpage-1.products offset:index limit:1 %}
  {% include 'product-list-repeatable-item' with product %}
  {% endfor %}
  {% else %}
  &lt;p&gt;
  &lt;a href="/admin/custom_collections"&gt;
  Add a product to the "frontpage" collection to see it here...
  &lt;/a&gt;
  &lt;/p&gt;
  {% endif %}
  &lt;/div&gt;   
  </code></pre>