Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/RandomNumbers/RandomNumberGenerator_Encapsulation.hpp

    r15911c r63839f  
    8787   */
    8888  double operator()() const {
    89     return (*randomgenerator)();
     89    const double value = (*randomgenerator)();
     90    //std::cout << "Current random value from (" << EngineName() << "," << DistributionName() << ") is " << value << std::endl;
     91    return value;
    9092  }
    9193
     
    98100  }
    99101
     102  /** Getter for smallest possible random number
     103   *
     104   * @return smallest possible random number
     105   */
     106  double min() const {
     107    return distribution_type->min();
     108  }
     109
     110  /** Getter for largest possible random number
     111   *
     112   * @return largest possible random number
     113   */
     114  double max() const {
     115    return distribution_type->max();
     116  }
     117
    100118  /** Getter for the type name of the internal engine.
    101119   *
    102120   */
    103   std::string EngineName() {
     121  std::string EngineName() const {
    104122    return engine_type->name();
    105123  }
     
    108126   *
    109127   */
    110   std::string DistributionName() {
     128  std::string DistributionName() const {
    111129    return distribution_type->name();
    112130  }
Note: See TracChangeset for help on using the changeset viewer.