aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/math/random.h
blob: f2fbe22510deb233ede048c0f60729dc0d4cc098 (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/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