method
random.Generator.
bytes
Return random bytes.
Number of random bytes.
String of length length.
Examples
>>> np.random.default_rng().bytes(10) ' eh\x85\x022SZ\xbf\xa4' #random