# halton

Version:

Generates the first n elements of the Halton sequence based on the prime number p. Halton sequences are quasi-random number sequences.

## Syntax

x = halton(p, n)

## p

Prime number.

## n

Number of elements MathScript generates.

## x

Sequence of n real numbers in the interval [0, 1].

N = 10000;
plot(halton(3, N), halton(5, N), 'o')

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices