How do I generate random floats in C++?
I thought I could take the integer rand and divide it by something, would that be adequate enough?
Call the code with two float values, the code works in any range.
float
float rand_FloatRange(float a, float b) { return ((b - a) * ((float)rand() / RAND_MAX)) + a; }