cupynumeric.random.default_rng#
- cupynumeric.random.default_rng(
- seed: int | BitGenerator | Generator | None = None,
Construct a new Generator with the default BitGenerator (XORWOW).
- Parameters:
seed ({None, int, BitGenerator, Generator}, optional) – A seed to initialize the
BitGenerator
. IfNone
, then fresh, unpredictable entropy will be pulled from the OS. Additionally, when passed aBitGenerator
, it will be wrapped byGenerator
. If passed aGenerator
, it will be returned unaltered.- Returns:
The initialized generator object.
- Return type:
Notes
If
seed
is not aBitGenerator
or aGenerator
, a newBitGenerator
is instantiated. This function does not manage a default global instance.See also
- Availability:
Multiple GPUs, Multiple CPUs