lost_bits1110
asked on
How to generate random FLOAT numbers between a specified range?
Hello experts..!
How can I generate random float numbers in a particular range?
I know I can use: (float)rand()
But how could I get numbers between the ranges -5 and 20 lets say?
Thanks..
How can I generate random float numbers in a particular range?
I know I can use: (float)rand()
But how could I get numbers between the ranges -5 and 20 lets say?
Thanks..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> How'd you figure that out so fast?????!
Practice! :)
Dex*
Practice! :)
Dex*
ASKER
It works..
How'd you figure that out so fast?????!
I'll get there one day.......
:s