Chi-Tech
random_number_generator.h
Go to the documentation of this file.
1
#ifndef _chi_math_rng_h
2
#define _chi_math_rng_h
3
4
#include <random>
5
6
namespace
chi_math
7
{
8
//#########################################################
9
/**Random number generator based on threefry.*/
10
class
RandomNumberGenerator
11
{
12
private
:
13
std::mt19937_64
mt1993764_generator_
;
14
std::uniform_real_distribution<double>
distribution_
;
15
16
public
:
17
RandomNumberGenerator
();
18
RandomNumberGenerator
(
int
seed);
19
double
Rand
();
20
};
21
}
22
23
#endif
chi_math::RandomNumberGenerator
Definition:
random_number_generator.h:11
chi_math::RandomNumberGenerator::distribution_
std::uniform_real_distribution< double > distribution_
Definition:
random_number_generator.h:14
chi_math::RandomNumberGenerator::mt1993764_generator_
std::mt19937_64 mt1993764_generator_
Definition:
random_number_generator.h:13
chi_math::RandomNumberGenerator::Rand
double Rand()
Definition:
random_number_generator.cc:18
chi_math::RandomNumberGenerator::RandomNumberGenerator
RandomNumberGenerator()
Definition:
random_number_generator.cc:4
chi_math
Definition:
chi_runtime.h:42
framework
math
RandomNumberGeneration
random_number_generator.h
Generated by
1.9.3