From ae7ea39966236965500faa96c42986bf35cc9af3 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 1 Apr 2016 21:31:28 +0200 Subject: Improve distribution of remaining spaces after base addition Removed random utility class as it was over-designed. --- src/random.cc | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/random.cc (limited to 'src/random.cc') diff --git a/src/random.cc b/src/random.cc deleted file mode 100644 index dba3647..0000000 --- a/src/random.cc +++ /dev/null @@ -1,29 +0,0 @@ -#include "random.h" - -namespace utility { - -std::size_t Random::Range::get() { - return this->distribution_(*(this->generator_)); -} - -Random::Range::Range( - std::mt19937* const generator, - const std::size_t a, - const std::size_t b -): - generator_(generator), - distribution_(a, b) { } - -Random::Random(): - device_{}, - generator_{device_()} { } - -Random::Range Random::makeRange( - const std::size_t a, - const std::size_t b) { - this->generator_.seed(this->device_()); - - return Range{&(this->generator_), a, b}; -} - -} -- cgit v1.2.3