diff options
author | chai <chaifix@163.com> | 2020-02-11 11:29:07 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-02-11 11:29:07 +0800 |
commit | 160e1299ef3d95f8e8c48706d7f61dd3dc6c6b60 (patch) | |
tree | abe5ae5242d9cc6caf6edf103e662c44e978fca0 /src/libjin/math/random.h | |
parent | e095043485d1d298571af6d9eca7f0db9009ea7a (diff) |
Diffstat (limited to 'src/libjin/math/random.h')
-rw-r--r-- | src/libjin/math/random.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/libjin/math/random.h b/src/libjin/math/random.h index 1eb22c4..f2fbe22 100644 --- a/src/libjin/math/random.h +++ b/src/libjin/math/random.h @@ -5,29 +5,29 @@ namespace JinEngine { - namespace Math - { + namespace Math + { - /// - /// A random number generator. - /// - class RandomGenerator - { - public: - RandomGenerator(uint32 seed); + /// + /// A random number generator. + /// + class RandomGenerator + { + public: + RandomGenerator(uint32 seed); - uint32 rand(); + uint32 rand(); - uint32 rand(uint32 min, uint32 max); + uint32 rand(uint32 min, uint32 max); - float randf(float min, float max, int ac); + float randf(float min, float max, int ac); - private: - uint32 mSeed; + private: + uint32 mSeed; - }; + }; - } // namespace Math + } // namespace Math } // namespace JinEngine #endif
\ No newline at end of file |