From c5b12c0c20c1f411cfb00232688fd45beb2d12a4 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Fri, 11 Feb 2022 14:49:16 +0100 Subject: [PATCH] Deleted weird files --- Test/Random.cpp | 1 - Test/Random.h | 41 ----------------------------------------- 2 files changed, 42 deletions(-) delete mode 100644 Test/Random.cpp delete mode 100644 Test/Random.h diff --git a/Test/Random.cpp b/Test/Random.cpp deleted file mode 100644 index 6ebb060..0000000 --- a/Test/Random.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "Random.h" diff --git a/Test/Random.h b/Test/Random.h deleted file mode 100644 index 7349666..0000000 --- a/Test/Random.h +++ /dev/null @@ -1,41 +0,0 @@ -#pragma once -#include - -namespace Eule -{ - /** Extensive random number generator - */ - class Random - { - public: - //! Will return a random double between `0` and `1` - static double Rand(); - - //! Will return a random unsigned integer. - static unsigned int RandomUint(); - - //! Will return a random integer - static unsigned int RandomInt(); - - //! Will return a random double within a range - //! These bounds are INCLUSIVE! - static double RandomRange(const double min, const double max); - - //! Will return a random integer within a range. This is faster than `(int)RandomRange(x,y)` - //! These bounds are INCLUSIVE! - static int RandomIntRange(const int max, const int min); - - //! Will 'roll' a dice, returning `true` \f$100 * chance\f$ percent of the time. - static bool RandomChance(const double chance); - - private: - //! Will initialize the random number generator - static void InitRng(); - - static std::mt19937 rng; - static bool isRngInitialized; - - // No instanciation! >:( - Random(); - }; -}