📜  带有随机数的 numpy 数组 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:36.181000             🧑  作者: Mango

代码示例1
import numpy as np

# Creates a numpy array of shape (4,5), filled with random integers between 0 (inclusive) and 10 (exclusive)
rand_array = np.random.randint(0,10,(4,5))