random.randint和numpy.random.randint
random.randint(a, b)
返回闭区间[a, b] 范围内的整数值numpy.random.randint(a, b)
返回开区间 [a, b)范围内的整数值
numpy.random.randint(low, high, size)
low、high、size三个参数。默认high是None,如果只有low,那范围就是[0,low)。如果有high,范围就是[low,high);size是输出数组的维度(形状),可以是列表,或者元组