#include <time.h>

#include <iostream>

#if defined(_MSC_VER) && (_MSC_VER >= 1500) // Visual Studio 2008 or higher
    #include <random>
#endif

#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 402) // GCC 4.2 or higher
    #include <tr1/random>
#endif

typedef std::tr1::mt19937 Eng;
typedef std::tr1::uniform_int<unsigned long> Dist;
typedef std::tr1::variate_generator<Eng,Dist> Gen;

using namespace std;

int main()
{
    Eng eng((unsigned int)time(NULL));

    Dist dist(0, 150000000);
    Gen gen(eng, dist);

    cout << gen() << endl;
    return 0;
}
