random c++ code