NanoMagMC
v0.2
Monte Carlo Simulation Software for Atomistic Models of Magnetic Materials
|
Base class for the random number generators. More...
#include <stdrand.hpp>
Public Member Functions | |
std_randbase () | |
Default constructor. More... | |
~std_randbase () | |
Default destructor. More... | |
void | change_seed (int seed) |
Change the current random seed. More... | |
virtual double | gen () |
Return a single random number. More... | |
void | jump () |
Jump forward 2^64 places. More... | |
Protected Attributes | |
rng::rng128 | generator |
Base class for the random number generators.
|
inline |
Default constructor.
|
inline |
Default destructor.
|
inline |
Change the current random seed.
seed | The new seed. |
|
inlinevirtual |
Return a single random number.
Reimplemented in stdrand::std_lognormrand, stdrand::std_normrand, stdrand::std_i_unirand, and stdrand::std_d_unirand.
|
inline |
Jump forward 2^64 places.
|
protected |