aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Math/je_random.h
blob: 0f531556d48d20765a2e50fd9a96b9bfeedec914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#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(uint32 seed);

            uint32 rand();

            uint32 rand(uint32 min, uint32 max);

            float randf(float min, float max, int ac);

        private:
            uint32 mSeed;

        };

    } // namespace Math
} // namespace JinEngine

#endif