|
SST/macro
|
A random number generator combining several techniques by George Marsaglia (1999; internet posting). More...
#include <rng.h>


Public Member Functions | |
| virtual std::string | to_string () const |
| rngint_t | value () |
| ~Combo () | |
| void | vec_reseed (const std::vector< rngint_t > &seeds) |
| int | nseed () |
Public Member Functions inherited from RNG::UniformInteger | |
| virtual | ~UniformInteger () |
| rngint_t | value_in_range (rngint_t range) |
| virtual double | realvalue (bool include_zero=true, bool include_one=true) |
| Return a random value in the interval [0,1], (0,1], [0,1), or (0,1) More... | |
| void | reseed () |
| void | reseed (rngint_t) |
| void | reseed (rngint_t, rngint_t) |
| void | reseed (rngint_t, rngint_t, rngint_t) |
| void | reseed (rngint_t, rngint_t, rngint_t, rngint_t) |
Static Public Member Functions | |
| static Combo * | construct () |
| static Combo * | construct (const std::vector< rngint_t > &) |
Protected Member Functions | |
| Combo () | |
Private Attributes | |
| SWB * | swb_ |
| SimpleCombo * | simplecombo_ |
A random number generator combining several techniques by George Marsaglia (1999; internet posting).
Here is an excerpt from the posting describing this generator: For the super cautious, (KISS+SWB) in an expression would provide a random 32-bit integer from a sequence with period > 27700, and would only add some 300 nanoseconds to the computing time for that expression.
| RNG::Combo::~Combo | ( | ) |
|
protected |
|
static |
|
virtual |
Implements RNG::UniformInteger.
|
inlinevirtual |
|
inlinevirtual |
Implements RNG::UniformInteger.
Definition at line 509 of file rng.h.
References RNG::UniformInteger::nseed(), and RNG::UniformInteger::vec_reseed().

|
virtual |
Implements RNG::UniformInteger.
|
private |
1.8.11