summaryrefslogtreecommitdiffstats
path: root/src/FastRandom.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/FastRandom.h')
-rw-r--r--src/FastRandom.h16
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);