Your child is doing it for the reaction. That's what they think is so funny. Give the same reaction every time. Say, "That hurt. Please stop that" in a calm voice. Warn the child that if they don't stop it next time they get sent to their room and when they do try again, stick to that rule to show that you mean it. Make sure they understand that biting is not nice or funny and can hurt people.