Create rand_cmp2.cpp