def in_range(bottom, top):
    """
    Validate that a number is in the given range.

    >>> f = in_range(-10, 100)
    >>> f(-10)
    True
    >>> f(100)
    True
    >>> f(50)
    True
    >>> f(200)
    False
    >>> f(-20)
    False
    >>> f(55.85)
    True

    :param bottom: bottom interval delimiter.
    :type bottom: int or float
    :param top: top interval delimiter.
    :type top: int or float
    :rtype: A validator function.
    """
    def validator(num):
        if bottom <= num <= top:
            return True
        return False
    return validator