generate random double c 2b 2b

Solutions on MaxInterview for generate random double c 2b 2b by the best coders in the world

showing results for - "generate random double c 2b 2b"
Francesco
23 Nov 2018
1double fRand(double fMin, double fMax)
2{
3    double f = (double)rand() / RAND_MAX;
4    return fMin + f * (fMax - fMin);
5}