| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
gsl_rng * r = gsl_rng_alloc (gsl_rng_taus); |
If there is insufficient memory to create the generator then the
function returns a null pointer and the error handler is invoked with an
error code of GSL_ENOMEM.
The generator is automatically initialized with the default seed,
gsl_rng_default_seed. This is zero by default but can be changed
either directly or by using the environment variable GSL_RNG_SEED
(see section 16.6 Random number environment variables).
The details of the available generator types are described later in this chapter.
ranlux generator used a seed
of 314159265, and so choosing s equal to zero reproduces this when
using gsl_rng_ranlux.