function to randomly choose character attack complete