1 #ifndef __RANDOM_RANDOM_H__
2 #define __RANDOM_RANDOM_H__
4 #include "../Vector/Vector.hpp"
tvmet::Vector< double, 3UL > DoubleVector
Vector type for representing particle positions and velocities as double precision floating point val...
Definition: Vector.hpp:23
void maxwell_boltzman_velocity(const double temp, const double mass, DoubleVector &v)
Generates a velocity vector according to the Maxwell-Boltzman Distribution.
Definition: Random.cpp:35
double uniform_rand()
Generates uniformly distributed random numbers in the range [0, 1)
Definition: Random.cpp:23
double rand_maxwell_2d()
Generates samples from the 2D Maxwell Distribution.
Definition: Random.cpp:41
void rand_vector(DoubleVector &v)
Generates a vector whose components have a standard normal distribution.
Definition: Random.cpp:28
double cosine_distribution()
Generates a random number according to the cosine distribution f(x) = 0.5 * cos(x) for -pi/2 <= x <= ...
Definition: Random.cpp:55