int, optional Number of samples to generate in the parameter space. Default is 1. endpoint : bool, optional If true, sample from the interval ``[l_bounds, u_bounds]`` instead of the default ``[l_bounds, u_bounds)``. Defaults is False. workers : int, optional Number of workers to use for parallel processing. If -1 is given all CPU threads are used. Only supported when using `Halton` Default is 1. Returns ------- sample : array_like (n, d) QMC sample. Notes ----- It is safe to just use the same ``[0, 1)`` to integer mapping with QMC that you would use with MC. You still get unbiasedness, a strong law of large numbers, an asymptotically infinite variance reduction and a finite sample variance bound. To convert a sample from :math:`[0, 1)` to :math:`[a, b), b>a`, with :math:`a` the lower bounds and :math:`b` the upper bounds, the following transformation is used: .. math:: \text{floor}((b - a) \cdot \text{sample} + a) r