Is there a way to randomise a query from from a collection of posts or products. So that each query is different. Just like top e commerce sites like temu, aliexpress, each time you refresh the recommended products are not the same and in different order
TL;DR
Developers want to know how to randomize queries from a collection of posts or products so that each query is different, similar to top e-commerce sites like Temu and AliExpress. This way, each time a user refreshes the recommended products, they will see a new order.
Solution: Implement a random function in the query to shuffle the results each time the query is run.