c++11 random float code example
Example: random number generator for floats
float r3 = LO + static_cast (rand()) /( static_cast (RAND_MAX/(HI-LO)));
float r3 = LO + static_cast (rand()) /( static_cast (RAND_MAX/(HI-LO)));