Random number generators discussion

Random number generators | www.agner.org

Compile Error in stoc1.cpp
Author:  Date: 2007-07-08 15:45
Line 47 reads:

sum += log(i);

which throws me a "ambigious call to overloaded function" error in VC 8 since there is no log function defined on int. Changing it to

sum += log((double)i);

fixes the problem. Just thought you might want to know.


thread Compile Error in stoc1.cpp - Oren - 2007-07-08
last reply Compile Error in stoc1.cpp new - Agner - 2007-07-09