fix function is_random
complete function produce_four_digit_random_num