标签: python-3.x numpy
有:
>>> np.random.permutation(5) array([2, 0, 1, 4, 3]) >>> np.random.randint(0,5,5) array([3, 4, 0, 2, 1])