gsl_rnga Class Reference

#include <gsl_rnga.h>

Inheritance diagram for gsl_rnga:

rnga

Detailed Description

Random number generator (GSL).

If seed is zero, or is not given, then the default seed specific to the particular random number generator is used. No virtual functions are used in this class or its parent, rnga. This should be as fast as the original GSL version.

Definition at line 43 of file gsl_rnga.h.


Public Member Functions

 gsl_rnga (const gsl_rng_type *gtype=gsl_rng_mt19937)
 Initialize the random number generator with type gtype and the default seed.
 gsl_rnga (unsigned long int seed, const gsl_rng_type *gtype=gsl_rng_mt19937)
 Initialize the random number generator with seed.
const gsl_rng_type * get_type ()
 Return rng type.
double random ()
 Return a random number in $(0,1]$.
unsigned long int get_max ()
 Return the maximum integer for random_int().
unsigned long int random_int (unsigned long int n=0)
 Return random integer in $[0,\mathrm{max}-1]$.
gsl_rng * get_gsl_rng ()
 Return a pointer to the gsl_rng object (deprecated).

Protected Attributes

gsl_rng * gr
 The GSL random number generator.
const gsl_rng_type * rng
 The GSL random number generator type.

Member Function Documentation

gsl_rng* get_gsl_rng (  ) 

Return a pointer to the gsl_rng object (deprecated).

Used in gsl_miser and gsl_anneal.


The documentation for this class was generated from the following file:
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.