random_score for function score query is enough for you? It returns random score based on internal Lucene doc ids as a source of randomness, which is renumbered by merges.
If you want differente results even for repeated same query, maybe you have to use some script field with painless.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.