import random


def getValue(state, burnMin, burnMax):
    """Determines a value based on state for a dragon action to return"""

    if state == 'burning':
        return random.randrange(burnMin, burnMax)
    elif state == 'eating':
        return random.randrange(1,75)
    elif state == 'looting':
        return random.randrange(1,5)
    else: return 0