`GET /$INDEX/_search` ```json { "query": { "function_score": { "random_score": {} } }, "size": 100 } ``` The `size` operator is only needed to control how many documents to sample.