random.uniform(a, b)它将返回一个随机浮点数 N ,当 a <= b 时 a <= N <= b ,当 b < a 时 b <= N <= a 。来自python官方文档。https://docs.python.org/zh-cn/3/library/random.html
random.uniform(a, b)
它将返回一个随机浮点数 N ,当 a <= b 时 a <= N <= b ,当 b < a 时 b <= N <= a 。