Halton Sequence VI
- Updated2025-07-30
- 2 minute(s) read
Generates quasi-random Halton or Richtmeyer sequences, which are low-discrepancy number sequences.
You must manually select the polymorphic instance to use.

Inputs/Outputs
initialize?
—
initialize? controls whether the noise sample generator seeds with a new value. If initialize? is TRUE, the VI updates noise samples according to the value of seed. If initialize? is FALSE, the VI produces noise samples as a continuation of the previous noise sequence. The default is TRUE.
samples
—
samples specifies the number of samples the VI returns in the output array. The number of samples must be greater than 0. The default is 128.
seed
—
seed determines the seed to generate the sequence. seed must be a prime number. If seed is negative, LabVIEW takes the absolute value. The default is 3.
Halton Pattern
—
Halton Pattern returns a Halton sequence in the interval [0,1].
error
—
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
The quasi-random sequence is a sequence with low discrepancy that uniformly distributes in the interval [0,1].
Use a prime number as the seed to generate a Halton sequence.
Use an irrational number as the seed to generate a Richtmeyer sequence.
In the VI, use the initialize? input to generate a long quasi-random noise sequence block-by-block. The following block diagram shows two ways to generate identical 300-sample Halton sequences.
initialize?
—
samples
—
Halton Pattern
—
error
—