added fractions and RNG::trial
This commit is contained in:
@ -5,6 +5,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <vector>
|
||||
|
||||
#include "fraction.h"
|
||||
|
||||
// Technically, you should ONLY define one rng for the entire program
|
||||
// IMPORTANT: pass all RNG objects as references
|
||||
class RNG final {
|
||||
@ -24,6 +26,8 @@ public:
|
||||
unsigned int get_init_seed() const;
|
||||
int get_curr_rand_num() const;
|
||||
|
||||
bool trial(fraction &psuccess);
|
||||
|
||||
template<class T> T &get_rand_in_vector(const std::vector<T> &vec);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user