class_docstr: The domain of a hyperparameter.
  
  Domains are restricted to values of the simple types `float`, `int`,
  `str`, and `bool`.
class_docstr_tok: ["The","domain","of","a","hyperparameter",".","Domains","are","restricted","to","values","of","the","simple","types","`","float","`",",","`","int","`",",","`","str","`",",","and","`","bool","`","."]
docstr: Sample a value from this domain uniformly at random.
  
  Args:
    rng: A `random.Random` interface; defaults to the `random` module
      itself.
  
  Raises:
    IndexError: If the domain is empty.
docstr_tok: ["Sample","a","value","from","this","domain","uniformly","at","random",".","Args",":","rng",":","A","`","random.Random","`","interface",";","defaults","to","the","`","random","`","module","itself",".","Raises",":","IndexError",":","If","the","domain","is","empty","."]
code: def sample_uniform(self, rng=random):
      """Sample a value from this domain uniformly at random.
  
      Args:
        rng: A `random.Random` interface; defaults to the `random` module
          itself.
  
      Raises:
        IndexError: If the domain is empty.
      """
      pass
  
imports: import abc
  import hashlib
  import json
  import random
  import time
  import numpy
  from tensorboard.compat import tf2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.plugins.hparams import api_pb2
  from tensorboard.plugins.hparams import metadata
  from tensorboard.plugins.hparams import plugin_data_pb2
label_desc: Use image node_id 2 for calling the Domain obj's underlying member method code with example usage: obj.sample_uniform(rng) without return types