bundles / scipy 1.18.0 / scipy / stats / _qmc / QMCEngine / random
function
scipy.stats._qmc:QMCEngine.random
source: /scipy/stats/_qmc.py:974
Signature
def random(self, n: IntNumber = 1, *, workers: IntNumber = 1) → np.ndarraySummary
Draw n in the half-open interval [0, 1).
Parameters
n: int, optionalNumber of samples to generate in the parameter space. Default is 1.
workers: int, optionalOnly supported with Halton. Number of workers to use for parallel processing. If -1 is given all CPU threads are used. Default is 1. It becomes faster than one worker for
ngreater than .
Returns
sample: array_like (n, d)QMC sample.
Aliases
scipy.stats._qmc.QMCEngine.random