const long long L = 1, R = 10; random_device rd; mt19937 rng(rd()); uniform_int_distribution dist(L, R); // discrete_distribution dist({10, 30, 60}); // [0, 2] // bernoulli_distribution dist(p); // true(p), false(1-p) // binomial_distribution dist(N, p); // # of success // geometric_distribution dist(p); // # of failure // uniform_real_distribution dist(L, R); // normal_distribution dist(mean, std); // exponential_distribution dist(lambda); // occur time // poisson_distribution dist(lambda); // how many? // chi_squared_distribution dist(df); // 자유도 auto gen = bind(dist, rng); gen(); gen(); gen();