Wrapper class for GSL random number generation routines. More...
#include <src/gsl_wrappers/gsl_random_generator.h>
Public Member Functions | |
| random_generator (const random_generator &other) | |
| Creates a copy of a random generator. | |
| random_generator (const gsl_rng_type *type=NULL, unsigned long int seed=0) | |
| Class constructor with or without specified type of random number generator. | |
| ~random_generator () | |
| Class destructor. | |
| void | set (unsigned long int seed) |
| Function that initializes (or `seeds') the random number generator. | |
| unsigned long int | get (unsigned long int n=0) |
| double | uniform () |
| Function that returns uniform random variable in range [0, 1) | |
| double | uniform_positive () |
| Function that returns uniform random variable in range (0, 1) | |
| unsigned long int | uniform_int (unsigned long int n) |
| Function that returns uniform random variable in range[(0, n-1]. | |
| string | name () |
| unsigned long int | max () |
| Function that returns the largest value that get can return. | |
| unsigned long int | min () |
| Function that returns the smallest value that get can return. | |
Private Attributes | |
| gsl_rng * | generator |
| GSL random number object. | |
Wrapper class for GSL random number generation routines.
1.7.2