The call of random() uses the self-written random-number generator rd(), an object of the auxiliary
function object class MyRandom, which uses a random-number algorithm that often is better than the
usual direct call of rand().4 Note that before C++11, you couldn’t pass a temporary object as
random-number generator: