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

x = random.rand(5)

print(x)
运行结果: