NanoMagMC  v0.2
Monte Carlo Simulation Software for Atomistic Models of Magnetic Materials
Public Member Functions | Protected Attributes | List of all members
stdrand::std_randbase Class Reference

Base class for the random number generators. More...

#include <stdrand.hpp>

Inheritance diagram for stdrand::std_randbase:
Inheritance graph
[legend]
Collaboration diagram for stdrand::std_randbase:
Collaboration graph
[legend]

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
 

Detailed Description

Base class for the random number generators.

Constructor & Destructor Documentation

stdrand::std_randbase::std_randbase ( )
inline

Default constructor.

stdrand::std_randbase::~std_randbase ( )
inline

Default destructor.

Member Function Documentation

void stdrand::std_randbase::change_seed ( int  seed)
inline

Change the current random seed.

Parameters
seedThe new seed.
virtual double stdrand::std_randbase::gen ( )
inlinevirtual

Return a single random number.

Reimplemented in stdrand::std_lognormrand, stdrand::std_normrand, stdrand::std_i_unirand, and stdrand::std_d_unirand.

void stdrand::std_randbase::jump ( )
inline

Jump forward 2^64 places.

Member Data Documentation

rng::rng128 stdrand::std_randbase::generator
protected

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