ecolab::urand Class Reference

#include <random_unuran.h>

Inheritance diagram for ecolab::urand:
Inheritance graph
Collaboration diagram for ecolab::urand:
Collaboration graph

Public Member Functions

double rand ()
 
void seed (TCL_args args)
 
void Seed (int s)
 
 urand (const gsl_rng_type *descr=gsl_rng_mt19937)
 
void Seed (int s)
 
void seed (TCL_args args)
 
double rand ()
 
void set_gen (TCL_args args)
 
void Set_gen (const string &descr)
 
void seed (int s)
 
void Seed (int s)
 
double rand ()
 
void Set_gen (const char *descr)
 
void set_gen (const char *descr)
 

Public Attributes

gsl_rng * gen
 

Friends

class gaussrand
 
class unuran
 

Detailed Description

uniform random generator. Uses a new PRNG uni rand if PRNG available, the default uniform random number generator otherwise

Member Function Documentation

◆ set_gen()

void ecolab::urand::set_gen ( const char *  descr)

select a different uniform random generator according the prng's string interface. If PRNG not avail, this routine is a nop.


The documentation for this class was generated from the following files: