|
@ -25,9 +25,6 @@ |
|
|
|
|
|
|
|
|
namespace math { |
|
|
namespace math { |
|
|
|
|
|
|
|
|
/// @addtogroup utility
|
|
|
|
|
|
/// @{
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
/**
|
|
|
* Generates a pseudo-random floating point number on `[start, end)` using std::rand(). |
|
|
* Generates a pseudo-random floating point number on `[start, end)` using std::rand(). |
|
|
* |
|
|
* |
|
@ -48,8 +45,6 @@ inline T random(T start, T end) |
|
|
return static_cast<T>(std::rand()) * rand_max_inverse * (end - start) + start; |
|
|
return static_cast<T>(std::rand()) * rand_max_inverse * (end - start) + start; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// @}
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace math
|
|
|
} // namespace math
|
|
|
|
|
|
|
|
|
#endif // ANTKEEPER_MATH_RANDOM_HPP
|
|
|
#endif // ANTKEEPER_MATH_RANDOM_HPP
|