/* * Random.cpp * * Created on: Dec 10, 2016 * Author: tibi */ #include namespace farmlands { namespace utils { float Random::getFloat() { std::uniform_real_distribution distrib; return distrib(m_engine); } int Random::getInt(int min, int max) { std::uniform_int_distribution distrib(min, max); return distrib(m_engine); } int Random::getInt(int max) { std::uniform_real_distribution distrib(0, max); return distrib(m_engine); } } /* namespace utils */ } /* namespace farmlands */