代码示例:(标识:python_numpy_random_2d_array)
python_numpy_random_2d_array.py
from numpy import random

x = random.randint(100, size=(3, 5))

print(x)
运行结果: