code: def create_van_der_corput_samples(idx, number_base=2):
      
      assert number_base > 1
  
      idx = numpy.asarray(idx).flatten() + 1
      out = numpy.zeros(len(idx), dtype=float)
  
      base = float(number_base)
      active = numpy.ones(len(idx), dtype=bool)
      while numpy.any(active):
          out[active] += (idx[active] % number_base)/base
          idx //= number_base
          base *= number_base
          active = idx > 0
      return out
docs: Van der Corput samples.
  
      Args:
          idx (int, numpy.ndarray):
              The index of the sequence. If array is provided, all values in
              array is returned.
          number_base (int):
              The numerical base from where to create the samples from.
  
      Returns (float, numpy.ndarray):
          Van der Corput samples.