TODO: modify other races constructors

did some reworking
This commit is contained in:
2024-07-13 14:02:30 -04:00
parent f2d2f6f72d
commit 9fdbf141d3
24 changed files with 227 additions and 186 deletions

View File

@ -28,13 +28,14 @@ public:
bool trial(const fraction &psuccess);
bool coin_flip() const;
bool coin_flip();
template<class T> T &get_rand_in_vector(std::vector<T> &vec) {
curr_rand_num = rand();
int exclude_middle(const int lower_bound, const int upper_bound,
const int excluded);
return vec[curr_rand_num % vec.size()];
}
template<class T> T rand_exclude(std::vector<T> &vec, T &target);
template<class T> T get_rand_in_vector(std::vector<T> &vec);
};
#endif