📜  生成随机双 C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:55.974000             🧑  作者: Mango

代码示例1
double fRand(double fMin, double fMax)
{
    double f = (double)rand() / RAND_MAX;
    return fMin + f * (fMax - fMin);
}