class_docstr: Proxy for ClockedSamplers.
docstr: Choose a new random starting point.
docstr_tok: ["Choose","a","new","random","starting","point","."]
code: def startup(self, region, us, Ls):
      """Choose a new random starting point."""
      if self.log:
          print("starting from scratch...")
      mask = region.inside(us)
      assert mask.any(), (
          "Not all of the live points satisfy the current region!",
          region.maxradiussq,
          region.u[~mask, :],
          region.unormed[~mask, :],
          us[~mask, :],
      )
      i = np.random.randint(mask.sum())
      self.starti = i
      ui = us[mask, :][i]
      assert np.logical_and(ui > 0, ui < 1).all(), ui
      Li = Ls[mask][i]
      self.last = ui, Li
      self.ncalls = 0
      self.nrestarts = 0
  
      self.nreflections = 0
      self.nreverses = 0
      self.nsteps_done = 0
      self.naccepts = 0
      self.nrejects = 0
  
      self.sampler = None
      self.stepper = None
  
imports: import numpy
  import matplotlib.pyplot
  from ultranest.samplingpath import SamplingPath, ContourSamplingPath, extrapolate_ahead
  from ultranest.stepsampler import StepSampler
  from ultranest.stepsampler import generate_region_oriented_direction, generate_region_random_direction, generate_random_direction
  from ultranest.flatnuts import ClockedStepSampler, ClockedBisectSampler, ClockedNUTSSampler
  from ultranest.flatnuts import SingleJumper, DirectJumper, IntervalJumper
label_desc: Use image node_id 5 for calling the OtherSamplerProxy obj's underlying member method code with example usage: obj.startup(region, us, Ls) without return types