diff --git a/lemon/random.h b/lemon/random.h --- a/lemon/random.h +++ b/lemon/random.h @@ -692,22 +692,6 @@ return real(); } - /// \brief Returns a random real number the range [0, b) - /// - /// It returns a random real number from the range [0, b). - template - Number real(Number b) { - return real() * b; - } - - /// \brief Returns a random real number from the range [a, b) - /// - /// It returns a random real number from the range [a, b). - template - Number real(Number a, Number b) { - return real() * (b - a) + a; - } - /// @} ///\name Uniform distributions @@ -724,17 +708,15 @@ /// \brief Returns a random real number from the range [0, b) /// /// It returns a random real number from the range [0, b). - template - Number operator()(Number b) { - return real() * b; + double operator()(double b) { + return real() * b; } /// \brief Returns a random real number from the range [a, b) /// /// It returns a random real number from the range [a, b). - template - Number operator()(Number a, Number b) { - return real() * (b - a) + a; + double operator()(double a, double b) { + return real() * (b - a) + a; } /// \brief Returns a random integer from a range