Update rand_cmp2.cpp