- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/RandomNumbers/RandomNumberGenerator_Encapsulation.hpp
r15911c r63839f 87 87 */ 88 88 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; 90 92 } 91 93 … … 98 100 } 99 101 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 100 118 /** Getter for the type name of the internal engine. 101 119 * 102 120 */ 103 std::string EngineName() {121 std::string EngineName() const { 104 122 return engine_type->name(); 105 123 } … … 108 126 * 109 127 */ 110 std::string DistributionName() {128 std::string DistributionName() const { 111 129 return distribution_type->name(); 112 130 }
Note:
See TracChangeset
for help on using the changeset viewer.