code: def _get_randomized_range(val,
                            provided_range,
                            default_range):
      
      if val is None:
          if provided_range is None:
              return default_range
          else:
              return provided_range
      else:
          if provided_range is not None:
              raise ValueError('Value {} overrides range {}'
                               .format(str(val), str(provided_range)))
          return [val]
docs: Helper to initialize by either value or a range
          Returns a range to randomize from