cupy.random.default_rng#
- cupy.random.default_rng(seed=None)[source]#
Construct a new Generator with the default BitGenerator (XORWOW).
- Parameters
seed (None, int, array_like[ints], numpy.random.SeedSequence, cupy.random.BitGenerator, cupy.random.Generator, optional) – A seed to initialize the
cupy.random.BitGenerator
. If anint
orarray_like[ints]
or None is passed, then it will be passed tonumpy.random.SeedSequence
to detive the initialBitGenerator
state. One may also pass in a SeedSequence instance. Adiditionally, when passed :class:`BitGenerator, it will be wrapped byGenerator
. If passed aGenerator
, it will be returned unaltered.- Returns
The initialized generator object.
- Return type