class_docstr: Domain of a parameter with a set of discrete values.
  
  Parameters
  ----------------
  name: str, required
      Name of the parameter.
      
  values: list, required
      List of values to be searched.
class_docstr_tok: ["Domain","of","a","parameter","with","a","set","of","discrete","values",".","Parameters","--","--","--","--","--","--","--","--","name",":","str",",","required","Name","of","the","parameter",".","values",":","list",",","required","List","of","values","to","be","searched","."]
docstr: Sample a value of parameter used for RandomSearch
docstr_tok: ["Sample","a","value","of","parameter","used","for","RandomSearch"]
code: def _sample(self, rng):
      """Sample a value of parameter used for RandomSearch"""
      return rng.choice(self.values)
  
imports: import numpy
  from itertools import product
  from .models import Recommender
  from .metrics import RatingMetric, RankingMetric
  from .eval_methods import rating_eval, ranking_eval
  from .utils import get_rng
label_desc: Use image node_id 2 for calling the Discrete obj's underlying member method code with example usage: obj._sample(rng) and returns: rng