I am using a Magesuite module to get a product collection, and among other things I want to randomly select a certain number of products, fitting of course some criteria set with filters.
The collection used in this case is of class SmileElasticsuiteCatalogModelResourceModelProductFulltextCollection. In this collection type, orderRand() does not work, as it merely randomizes the results that are firstly fetched by ElasticSearch. I’d like for a way to instruct the collection, if possible, to randomize the results before fetching the products, according to the rest of the criteria specified.