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

x = random.rand(3, 5)

print(x)
运行结果: