def Rand3():
x = -1
while not 0 <= x < 3:
x = Rand5()
return x
Python : 算法-不同范围的随机数转换
最新推荐文章于 2023-12-25 22:37:00 发布
def Rand3():
x = -1
while not 0 <= x < 3:
x = Rand5()
return x