aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Math/je_random.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-11-08 08:32:05 +0800
committerchai <chaifix@163.com>2018-11-08 08:32:05 +0800
commit186c68f964868eff0ba543777f47ff036735ef77 (patch)
tree5018aca298c2c7e3d7788e692cbb8f7c778fb2fe /src/libjin/Math/je_random.h
parent78138dc8e08cebff3b8630cab5b54951061844b8 (diff)
*更新粒子系统
Diffstat (limited to 'src/libjin/Math/je_random.h')
-rw-r--r--src/libjin/Math/je_random.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/libjin/Math/je_random.h b/src/libjin/Math/je_random.h
index ff58918..0bcdec7 100644
--- a/src/libjin/Math/je_random.h
+++ b/src/libjin/Math/je_random.h
@@ -1,14 +1,28 @@
#ifndef __JE_RANDOM_H__
#define __JE_RANDOM_H__
+#include "../common/je_types.h"
+
namespace JinEngine
{
namespace Math
{
+ ///
+ /// A random number generator.
+ ///
+ class RandomGenerator
+ {
+ public:
+ RandomGenerator();
+ explicit RandomGenerator(uint32 seed);
+
+ uint32 rand(uint32 min, uint32 max);
+ float rand(float min, float max);
+ };
- }
-}
+ } // namespace Math
+} // namespace JinEngine
#endif \ No newline at end of file