+ 1
Random double values in C
How to generate random double numbers in C? (Number like 12.38392)
3 Answers
+ 1
https://www.geeksforgeeks.org/rand-and-srand-in-ccpp/
Give this article a read through,
It return a random integer but you could cast to double if you desire.
+ 1
Divide rand() by 10^n, where n is the decimal.