create encounter_random_status function