Get random results with Instantsearch

Hi, I am using Instantsearch and want to get random results on empty query and facetfilter. I am getting the shuffle results with below example but it’s the same first 9 results and shuffling its place. How do I get any results (not just first 9) ?

const search_related_product = instantsearch({
		  
		  indexName: products,
		  insightsClient: window.aa, 
		  searchClient: algoliaClient,		  
		  facetFilters: [
			  'all_categories: Graphics',
			  ]	 
})

const product_results = instantsearch.connectors.connectHits(renderHits);

search_related_product.addWidgets([  
      product_results({
				container: document.querySelector('#product-results'),
				transformItems(items) {
				    return shuffle(items);
				  },				  
			}),
]);

function shuffle(o) {
  for (
    var j, x, i = o.length;
    i;
    j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x
  );
  return o;
}

Taking this initiative from here How to Randomly Display Hits on the Searches Initial Load - #2 by sarah.dayan

I’d appreciate any help, thanks in advance.