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.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/random.h (limited to 'src/random.h') diff --git a/src/random.h b/src/random.h deleted file mode 100644 index 73f3215..0000000 --- a/src/random.h +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once - -#include - -namespace utility { - -class Random { - public: - class Range { - public: - std::size_t get(); - - protected: - friend class Random; - - Range(std::mt19937* const, const std::size_t, const std::size_t); - - private: - std::mt19937* const generator_; - std::uniform_int_distribution distribution_; - }; - - Random(); - - Range makeRange(const std::size_t a, const std::size_t b); - - private: - std::random_device device_; - std::mt19937 generator_; - -}; - - -} -- cgit v1.2.3