1.从[0,N]中随机选取一个数字
import numpy as np
# N=30
# k = np.random.randint(0,N)
2.自定义一维数组
xi = np.array([1, 2, 3, 4, 5, 6, 7, 8])
1.从[0,N]中随机选取一个数字
import numpy as np
# N=30
# k = np.random.randint(0,N)
2.自定义一维数组
xi = np.array([1, 2, 3, 4, 5, 6, 7, 8])