diff options
author | chai <chaifix@163.com> | 2018-11-18 22:32:55 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-18 22:32:55 +0800 |
commit | fc7b4579e49aaeecc81919e247e03f68bd5abfd4 (patch) | |
tree | 6547b8c7d3632591358267d06006eddc53216105 /src/libjin/Math/je_random.h | |
parent | 3905924fc35f92e5092576c3f6e8fc5db7588cde (diff) |
*粒子系统
Diffstat (limited to 'src/libjin/Math/je_random.h')
-rw-r--r-- | src/libjin/Math/je_random.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libjin/Math/je_random.h b/src/libjin/Math/je_random.h index 0bcdec7..0f53155 100644 --- a/src/libjin/Math/je_random.h +++ b/src/libjin/Math/je_random.h @@ -14,11 +14,16 @@ namespace JinEngine class RandomGenerator { public: - RandomGenerator(); - explicit RandomGenerator(uint32 seed); + RandomGenerator(uint32 seed); + + uint32 rand(); uint32 rand(uint32 min, uint32 max); - float rand(float min, float max); + + float randf(float min, float max, int ac); + + private: + uint32 mSeed; }; |