Numpy (1) random函数
20221128
numpy.random.randint
random.randint(low, high=None, size=None, dtype=int)
描述:
Return random integers from low (inclusive) to high (exclusive).
Return random integers from the “discrete uniform” distribution of the specified dtype in the “half-open” interval [low, high). If high is None (the default), then results are from [0, low).
参考:
[1] https://numpy.org/doc/stable/reference/random/generated/numpy.random.randint.html