import random


def random_delay(delay, start, stop):
    """
    Returns the delay argument combined with a random number between start
    and stop divided by 1000.
    """
    return delay + (random.randint(int(start), int(stop)) / 1000)