Random score, but keep X random values from a field on top

I'm wondering if that's possible with some sort of custom function query - have the results random, but keep results with X values (one time each) from one field at the top, so that we have at least one result from each category present. They also should be random.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.