from random import randint


def should_update_logstash(frequency=10):
    """
    Should logstash be updated with prmon dictionary?

    :param frequency:
    :return: return True once per 'frequency' times.
    """

    if randint(0, frequency - 1) == 0:
        return True
    else:
        return False