JDFTx  1.7.0
Random Namespace Reference

Random number generation. More...


void seed (int i)
double uniform (double start=0.0, double end=1.0)
 uniform random numbers between 0 and 1
int uniformInt (int end)
 uniform integer in [0,end)
double 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 normalComplex (double sigma=1.0)
 normal complex number with mean 0 and deviation sigma

Detailed Description

Random number generation.