lemon/random.h
changeset 69 914ffb9b3798
parent 62 4790635473ef
child 92 5d4decd1b870
     1.1 --- a/lemon/random.h	Thu Feb 07 21:23:23 2008 +0000
     1.2 +++ b/lemon/random.h	Thu Feb 07 22:33:38 2008 +0000
     1.3 @@ -67,9 +67,10 @@
     1.4  #include <vector>
     1.5  
     1.6  #include <ctime>
     1.7 -#include <cmath>
     1.8  
     1.9 +#include <lemon/math.h>
    1.10  #include <lemon/dim2.h>
    1.11 +
    1.12  ///\ingroup misc
    1.13  ///\file
    1.14  ///\brief Mersenne Twister random number generator
    1.15 @@ -759,7 +760,7 @@
    1.16      {
    1.17        double xi,nu;
    1.18        const double delta = k-std::floor(k);
    1.19 -      const double v0=M_E/(M_E-delta);
    1.20 +      const double v0=E/(E-delta);
    1.21        do {
    1.22  	double V0=1.0-real<double>();
    1.23  	double V1=1.0-real<double>();