Equana

Back to Numerical Arrays (NumPy)

np.default_rng

Construct a new Generator with the given BitGenerator.

Syntax

np.default_rng(seed?, options?)

Description

Construct a new Generator with the given BitGenerator. If seed is: - null/undefined: Use OS entropy - number/bigint: Create SeedSequence from the integer - array: Create SeedSequence from the array - SeedSequence: Use directly - BitGenerator: Use directly

Parameters

NameDescription
seed(optional)- Seed value or BitGenerator
options(optional)- Options object with optional bitGenerator name

Returns

Generator_2