/* * Copyright (c) 2012 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #include #include #include #include namespace Swift { int BoostRandomGenerator::generateRandomInteger(int maximum) { boost::uniform_int<> distribution(0, maximum); return distribution(generator); } }