cupynumeric.random.Generator#
- class cupynumeric.random.Generator(
- bit_generator: BitGenerator,
- __init__(
- bit_generator: BitGenerator,
Generator(bit_generator)
Container for the BitGenerators.
Generator
exposes a number of methods for generating random numbers drawn from a variety of probability distributions. In addition to the distribution-specific arguments, each method takes a keyword argument size that defaults toNone
. If size isNone
, then a single value is generated and returned. If size is an integer, then a 1-D array filled with generated values is returned. If size is a tuple, then an array with that shape is filled and returned.The function
cupynumeric.random.default_rng()
will instantiate a Generator with cuPyNumeric’s default BitGenerator.- Parameters:
bit_generator (BitGenerator) – BitGenerator to use as the core generator.
- Availability:
Multiple GPUs, Multiple CPUs
Methods