How to best create a random float in a range between two floats

前端 未结 0 1659
名媛妹妹
名媛妹妹 2021-02-11 13:46

I know that I can generate random floats with rand(max). I tried to generate a float in a range, this shouldn\'t be hard. But e.g rand(1.4512) returns 0, thus rand isn\'t calcul

相关标签:
回答
  • 消灭零回复
提交回复
热议问题