lib/Elastica/Query/FunctionScore.php
public function setRandomScore(int $seed = null): self
    {
        $seedParam = new \stdClass();
        if (null !== $seed) {
            $seedParam->seed = $seed;
        }

        return $this->setParam('random_score', $seedParam);
    }
public function setRandomScore(int $seed = null): self
    {
        $seedParam = new \stdClass();
        if (null !== $seed) {
            $seedParam->seed = $seed;
        }

        return $this->setParam('random_score', $seedParam);
    }
public function setRandomScore ( int $ seed = null ) : self { $ seedParam = new \ stdClass ( ) ; if ( null !== $ seed ) { $ seedParam -> seed = $ seed ; } return $ this -> setParam ( 'random_score' , $ seedParam ) ; }
If set, this query will return results in random order.

@param int $seed set a seed value to return results in the same random order for consistent pagination

@return $this
If set this query will return results in random order .