diff options
author | Mattes D <github@xoft.cz> | 2017-07-21 12:06:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 12:06:21 +0200 |
commit | 895987a1112100a209b345eab002366fee39d7aa (patch) | |
tree | 3e6db769934b8648324bc05eac6bc6427b110bbc /src/FastRandom.h | |
parent | Break the cactus block when it grows next to a block. (#3851) (diff) | |
download | cuberite-895987a1112100a209b345eab002366fee39d7aa.tar cuberite-895987a1112100a209b345eab002366fee39d7aa.tar.gz cuberite-895987a1112100a209b345eab002366fee39d7aa.tar.bz2 cuberite-895987a1112100a209b345eab002366fee39d7aa.tar.lz cuberite-895987a1112100a209b345eab002366fee39d7aa.tar.xz cuberite-895987a1112100a209b345eab002366fee39d7aa.tar.zst cuberite-895987a1112100a209b345eab002366fee39d7aa.zip |
Diffstat (limited to '')
-rw-r--r-- | src/FastRandom.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/FastRandom.h b/src/FastRandom.h index 77bafc217..7c3048118 100644 --- a/src/FastRandom.h +++ b/src/FastRandom.h @@ -77,8 +77,8 @@ public: /** Return a random IntType in the range [a_Min, a_Max]. */ - template <class IntType = int, class ArgType> - IntType RandInt(ArgType a_Min, ArgType a_Max) + template <class IntType = int> + IntType RandInt(IntType a_Min, IntType a_Max) { ASSERT( (a_Max >= a_Min) && @@ -97,8 +97,8 @@ public: /** Return a random IntType in the range [0, a_Max]. */ - template <class IntType = int, class ArgType> - IntType RandInt(ArgType a_Max) + template <class IntType = int> + IntType RandInt(IntType a_Max) { ASSERT((a_Max >= 0) && (a_Max <= std::numeric_limits<IntType>::max())); Detail::cUniform<IntType> dist(IntType(0), static_cast<IntType>(a_Max)); @@ -122,8 +122,8 @@ public: /** Return a random RealType in the range [a_Min, a_Max). */ - template <class RealType = float, class ArgType> - RealType RandReal(ArgType a_Min, ArgType a_Max) + template <class RealType = float> + RealType RandReal(RealType a_Min, RealType a_Max) { std::uniform_real_distribution<RealType> dist(a_Min, a_Max); return dist(m_Engine); @@ -134,8 +134,8 @@ public: /** Return a random RealType in the range [0, a_Max). */ - template <class RealType = float, class ArgType> - RealType RandReal(ArgType a_Max) + template <class RealType = float> + RealType RandReal(RealType a_Max) { std::uniform_real_distribution<RealType> dist(RealType(0), a_Max); return dist(m_Engine); |