import random


def greeting_response(text):

    """
    This function returns a random greeting response to a users greeting.
    """

    #bots greeting response
    bot_greetings = ['hallå', 'hej', 'Hej där']
    #user greetings

    user_greetings = ['hej', 'hejsan', 'hallå']

    for word in text.split():
        if word in user_greetings:
            return random.choice(bot_greetings)