procon

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub mugen1337/procon

:warning: Other/RandomNumberGenerator.hpp

Required by

Code

struct RandomNumberGenerator{
    mt19937 mt;
    RandomNumberGenerator():mt(chrono::steady_clock::now().time_since_epoch().count()){}
    // [a,b)
    int operator()(int a,int b){
        uniform_int_distribution<int> d(a,b-1);
        return d(mt);
    }
};
#line 1 "Other/RandomNumberGenerator.hpp"
struct RandomNumberGenerator{
    mt19937 mt;
    RandomNumberGenerator():mt(chrono::steady_clock::now().time_since_epoch().count()){}
    // [a,b)
    int operator()(int a,int b){
        uniform_int_distribution<int> d(a,b-1);
        return d(mt);
    }
};
Back to top page