Question: Write one line of code that generates a floating-point value (of type double) between -1.0 and 2.0. Use rand() and RAND_MAX only.
Write one line of code that generates a floating-point value (of type double) between -1.0 and 2.0. Use rand() and RAND_MAX only.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
