def random_score(seed = Time.now, options = {})
      scoring = options.merge(random_score: {seed: seed.to_i})
      chain { criteria.update_scores scoring }
    end
def random_score(seed = Time.now, options = {})
      scoring = options.merge(random_score: {seed: seed.to_i})
      chain { criteria.update_scores scoring }
    end
Adds a random score to the search request. All scores are
 added to the search request and combinded according to
 `boost_mode` and `score_mode`

 This probably only makes sense if you specify a filter
 for the random score as well.

 If you do not pass in a seed value, Time.now will be used

 @example
   UsersIndex.random_score(23, filter: { foo: :bar})
       # => {body:
              query: {
                function_score: {
                  query: { ...},
                  functions: [{
                    random_score: { seed: 23 },
                    filter: { foo: :bar }
                  }]
                } } }