CoMD
A Mini-app for Co-Design of Classical Molecular Dynamics.
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
random.h
Go to the documentation of this file.
1
/// \file
2
/// Simple random number generators for uniform and gaussian
3
/// distributions.
4
5
#ifndef __RANDOM_H
6
#define __RANDOM_H
7
8
#include "
mytype.h
"
9
#include <stdint.h>
10
11
/// Return a random number from a Gaussian distribution.
12
real_t
gasdev
(uint64_t* seed);
13
14
/// Return a random number from a uniform distribution.
15
double
lcg61
(uint64_t* seed);
16
17
/// Return a seed suitable for calling lcg61 or gasdev.
18
uint64_t
mkSeed
(uint32_t
id
, uint32_t callSite);
19
20
#endif
random.h
Generated on Wed Jun 5 2013 11:08:31 for CoMD by
1.8.3.1