I have a function in c++, which returns a random float number between two numbers. Here is the code:
float randFloatNumBetween(float lower, float upper) {
    srand((unsigned)time(NULL));
    return lower + ((float) rand() / RAND_MAX) * (upper - lower); 
}
When I call this function with parameters where lower is 0.0 and upper 10.0, it returns numbers like:
1.00503555
1.01846383
1.03463534
1.05263234
1.06461514
How can I make my function returns different numbers before and after the comma? Numbers like:
5.00503555
3.01846383
1.03463534
4.05263234
8.06461514