Update rand_cmp.cpp