import random


def get_random_comment(arr):
    """Takes in array, returns 1 random item in the array"""
    try:
        randnum = random.randint(0, len(arr) - 1)
        return arr[randnum]
    except IndexError:
        randnum = random.randint(0, 50)
        return arr[randnum]