Create rand_cmp.cpp