def halton(base):
    def value(index):
        result = 0.0
        f = 1.0 / base
        i = index
        while i > 0:
            result += f * (i % base)
            i = i // base
            f = f / base
        return result
    i = 1
    while i > 0:
        yield value(i)
        i += 1
Returns an iterator over an infinite Halton sequence
dataset/ETHPy150Open Toblerity/Shapely/tests/test_union.py/halton