bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / random / bit_generator / BitGenerator / random_raw
cython_function_or_method
numpy.random.bit_generator:BitGenerator.random_raw
Signature
def random_raw ( self , size = None ) Summary
Return randoms as generated by the underlying BitGenerator
Parameters
size: int or tuple of ints, optionalOutput shape. If the given shape is, e.g.,
(m, n, k), thenm * n * ksamples are drawn. Default is None, in which case a single value is returned.output: bool, optionalOutput values. Used for performance testing since the generated values are not returned.
Returns
out: uint or ndarrayDrawn samples.
Notes
This method directly exposes the raw underlying pseudo-random number generator. All values are returned as unsigned 64-bit values irrespective of the number of bits produced by the PRNG.
See the class docstring for the number of bits returned.
Aliases
-
numpy.random.BitGenerator.random_raw