New course! Every coder should learn Generative AI!
Try a free lesson+ 4
How to generate floating type random number in c++
2 Answers
+ 3
You can create a random integer and convert it to a float:
https://stackoverflow.com/questions/686353/random-float-number-generation
+ 5
Thank you Alexander Thiem