Thecallofrandom()usestheself-writtenrandom-numbergeneratorrd(),anobjectoftheauxiliary function object class MyRandom, which uses a random-numberalgorithmthat 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