Random examples of C++ coding