Randomizer (Function Object)

using reng = default_random_engine; // type of engine

using dist = uniform_int_distribution<>; // type of distribution

reng re {}; // the default engine

dist one_to_six {1,6}; // distribution that maps to the ints 1..6

auto die = bind(one_to_six, re); // make a generator

int x = die(); // roll the die: x becomes a value in [1:6]