Python random

Notes:
- random.randint(a, b) : closed range [a,b]
- random.random(): open range [0.0,1.0)
- random.uniform(a, b): a+(ba)random()
- np.random.randint(low, high): open range [low,high)
- np.random.random_integers(low, high): closed range [low,high]

你可能感兴趣的:(python,Random)