Random Assortment of C++ Code