Changed random number generator to use Poco::Random