implement judge random_number has same number
rename argument in compare function