summaryrefslogtreecommitdiffhomepage
path: root/src/random.cpp
blob: 5d5801b538d255ed7002156177122f475842ac14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

// project headers
#include "random.hpp"

// std libs
#include <cstdlib>

namespace Ogle
{
	namespace Random
	{
		int get_value(int min, int max)
		{
			return (std::rand()%(abs(max - min) + 1) + min);
		}
	}
}