NanoMagMC
v0.2
Monte Carlo Simulation Software for Atomistic Models of Magnetic Materials
|
Generator for random numbers on a normal distribution. More...
#include <stdrand.hpp>
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... | |
![]() | |
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 | |
![]() | |
rng::rng128 | generator |
Generator for random numbers on a normal distribution.
stdrand::std_normrand::std_normrand | ( | double | m, |
double | sdin, | ||
int | seed = 1 |
||
) |
Constructor.
m | The mean of the normal distribution. |
sdin | The standard deviation of the normal distribution. |
seed | The inital seed of the random number generator. Defaults to 1. |
|
inline |
Default destructor.
|
inlinevirtual |
Return a single random number.
Reimplemented from stdrand::std_randbase.