xorbits.numpy.random.bytes#
- xorbits.numpy.random.bytes(length)[source]#
Return random bytes.
Note
New code should use the ~numpy.random.Generator.bytes method of a ~numpy.random.Generator instance instead; please see the random-quick-start.
- Parameters
length (int) – Number of random bytes.
- Returns
out – String of length length.
- Return type
bytes
See also
random.Generator.bytes
which should be used for new code.
Examples
>>> np.random.bytes(10) b' eh\x85\x022SZ\xbf\xa4' #random
This docstring was copied from numpy.random.