Random number generators discussion

Random number generators | www.agner.org

thread Compile Error in stoc1.cpp - Oren - 2007-07-08
last reply Compile Error in stoc1.cpp - Agner - 2007-07-09
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.


Compile Error in stoc1.cpp
Author: Agner Date: 2007-07-09 08:05
You are right. Thank you.