import random


def chat_msg_reward(content):
    """ EXP rewarded when sending chat messages. """
    num_words = len(content.strip().split())
    lower = num_words // 2
    upper = num_words + num_words // 2
    return random.randint(lower, upper)