单项选择题

在Python中,如何生成一个0到1之间的随机浮点数?()

A.random.random()
B.random.uniform(0,1)
C.random.randint(0,1)
D.A和B都对