Kepler's Torus
distribution.h
1 #ifndef CAPSTONE_DISTRIBUTION_H
2 #define CAPSTONE_DISTRIBUTION_H
3 
4 #include <random>
5 
7 struct Distribution {
9  explicit Distribution (std::size_t seed);
11  virtual ~Distribution () = 0;
12 
14  std::size_t const seed;
16  std::mt19937 mt;
17 };
18 
20 std::size_t generateSeed();
21 
22 #endif //CAPSTONE_DISTRIBUTION_H
23 
24 /* Copyright © 2022 Aaron Alef */
std::mt19937 mt
Mersenne Twister pseudo-random number generator, initialised by the given seed and used to generate n...
Definition: distribution.h:16
Distribution(std::size_t seed)
Create a new random number distribution with the given seed.
Definition: distribution.cpp:3
virtual ~Distribution()=0
Make this class abstract.
std::size_t const seed
Seed used to initialise the random number generator.
Definition: distribution.h:14
Abstract base class for initialising random number distributions.
Definition: distribution.h:7