JDFTx  1.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Random.h File Reference

Random number generation. More...

#include <core/scalar.h>

Functions

void Random::seed (int i)
 
double Random::uniform (double start=0.0, double end=1.0)
 uniform random numbers between 0 and 1
 
double Random::normal (double mean=0.0, double sigma=1.0, double cap=0.0)
 normal random numbers with mean, sigma and an optional cap if non-zero
 
complex Random::normalComplex (double sigma=1.0)
 normal complex number with mean 0 and deviation sigma
 

Detailed Description

Random number generation.