上一个主题

numpy.random.choice

下一个主题

numpy.random.shuffle

numpy.random.bytes

numpy.random.bytes(length)

返回随机字节。

参数:
长度 : 利息

随机字节数。

返回:
out : STR

长度字符串 length .

实例

>>> np.random.bytes(10)
' eh\x85\x022SZ\xbf\xa4' #random