class_docstr: Hyperparameter base class.
  
  A `HyperParameter` instance is uniquely identified by its `name` and
  `conditions` attributes. `HyperParameter`s with the same `name` but with
  different `conditions` are considered as different `HyperParameter`s by
  the `HyperParameters` instance.
  
  Args:
      name: A string. the name of parameter. Must be unique for each
          `HyperParameter` instance in the search space.
      default: The default value to return for the parameter.
      conditions: A list of `Condition`s for this object to be considered
          active.
class_docstr_tok: ["Hyperparameter","base","class",".","A","`","HyperParameter","`","instance","is","uniquely","identified","by","its","`","name","`","and","`","conditions","`","attributes",".","`","HyperParameter","`","s","with","the","same","`","name","`","but","with","different","`","conditions","`","are","considered","as","different","`","HyperParameter","`","s","by","the","`","HyperParameters","`","instance",".","Args",":","name",":","A","string",".","the","name","of","parameter",".","Must","be","unique","for","each","`","HyperParameter","`","instance","in","the","search","space",".","default",":","The","default","value","to","return","for","the","parameter",".","conditions",":","A","list","of","`","Condition","`","s","for","this","object","to","be","considered","active","."]
code: def random_sample(self, seed=None):
      random_state = random.Random(seed)
      prob = float(random_state.random())
      return self.prob_to_value(prob)
  
file_path: keras-tuner/keras_tuner/engine/hyperparameters/hyperparameter.py
imports: import random
  from keras_tuner import utils
  from keras_tuner.api_export import keras_tuner_export
  from keras_tuner.engine import conditions
label_desc: Use image node_id 5 for calling the HyperParameter obj's underlying member method code with example usage: obj.random_sample(seed) and returns: self