Chi-Tech
random_number_generator.cc
Go to the documentation of this file.
2
3/**Default constructor. Seeds the generator with a zero.*/
5 distribution_(0.0, 1.0)
6{
8}
9
10/**Constructor where a seed is supplied.*/
12 distribution_(0.0, 1.0)
13{
14 mt1993764_generator_.seed(seed);
15}
16
17/**Generates a random number with the default distribution.*/
19{
20 return distribution_(mt1993764_generator_);
21}