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

Generator for random numbers on a normal distribution. More...

#include <stdrand.hpp>

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

Public Member Functions

 std_normrand (double m, double sdin, int seed=1)
 Constructor. More...
 
 ~std_normrand ()
 Default destructor. More...
 
double gen ()
 Return a single random number. More...
 
- Public Member Functions inherited from stdrand::std_randbase
 std_randbase ()
 Default constructor. More...
 
 ~std_randbase ()
 Default destructor. More...
 
void change_seed (int seed)
 Change the current random seed. More...
 
void jump ()
 Jump forward 2^64 places. More...
 

Additional Inherited Members

- Protected Attributes inherited from stdrand::std_randbase
rng::rng128 generator
 

Detailed Description

Generator for random numbers on a normal distribution.

Constructor & Destructor Documentation

stdrand::std_normrand::std_normrand ( double  m,
double  sdin,
int  seed = 1 
)

Constructor.

Parameters
mThe mean of the normal distribution.
sdinThe standard deviation of the normal distribution.
seedThe inital seed of the random number generator. Defaults to 1.
stdrand::std_normrand::~std_normrand ( )
inline

Default destructor.

Member Function Documentation

double stdrand::std_normrand::gen ( )
inlinevirtual

Return a single random number.

Reimplemented from stdrand::std_randbase.


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