Version 2, position dependent E/B, kinetic ions, boris mover, terminator
This commit is contained in:
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#ifndef RANDOM_NUMBERS_H
|
||||
#define RANDOM_NUMBERS_H
|
||||
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <random>
|
||||
|
||||
class RandomNumbers {
|
||||
public:
|
||||
RandomNumbers(int seed);
|
||||
|
||||
int rollUniform(int min, int max);
|
||||
double rollUniform(double min, double max);
|
||||
|
||||
std::mt19937* engine();
|
||||
|
||||
private:
|
||||
std::shared_ptr<std::mt19937> engine_;
|
||||
std::uniform_real_distribution<double> real_distribution_;
|
||||
};
|
||||
|
||||
#endif /* RANDOM_NUMBERS_H */
|
||||
Reference in New Issue
Block a user