Notes / Tag

#stdlib

1 public note use this tag.

Related

Related Categories

Concepts

Related Concepts

Concepts

  • Python Standard Library1
  • Python 库函数1
  • 库函数1

Notes

Notes Tagged stdlib

seedProgramming Languages

Python 常用库函数

random库是Python的标准库,用于产生各种分布的伪随机数序列。 它采用梅森旋转算法生成伪随机数序列。 1. random.random(): 返回随机生成的一个浮点数,范围在[0,1)之间 2. random.uniform(a, b): 返回随机生成的一个浮点数,范围在[a, b)之间 3. random.randint(a,b): 返回随机生成的[a,b]之间的整数 4. random.randrange(a, b, step=c): 在指定范围内,在指定的基数和

Jul 11, 2026 / learning-note