diff options
author | chai <chaifix@163.com> | 2018-11-08 08:32:05 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-08 08:32:05 +0800 |
commit | 186c68f964868eff0ba543777f47ff036735ef77 (patch) | |
tree | 5018aca298c2c7e3d7788e692cbb8f7c778fb2fe /src/libjin/Math/je_random.h | |
parent | 78138dc8e08cebff3b8630cab5b54951061844b8 (diff) |
*更新粒子系统
Diffstat (limited to 'src/libjin/Math/je_random.h')
-rw-r--r-- | src/libjin/Math/je_random.h | 18 |
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 |