Halton sequence calculated only once