bundles / numpy 2.4.3 / numpy / random / RandomState / bytes
cython_function_or_method
numpy.random:RandomState.bytes
Signature
def bytes ( length ) Summary
Return random bytes.
Extended Summary
Parameters
length: intNumber of random bytes.
Returns
out: bytesString of length
length.
Examples
np.random.bytes(10)
✗See also
- random.Generator.bytes
which should be used for new code.
Aliases
-
numpy.random.bytes -
numpy.random.RandomState.bytes