random库是使用随机数的python标准库
基本随机函数
实例程序:
import randomrandom.seed(10)print(random.random())print(random.random())
输出结果:
扩展随机数函数