import random


def rand(x,y):
    """

    Randomizer for augmentation pipepline

    Args:
    x (int, float): lower_bound
    y (int, float): upper_bound

    Returns:
        random number between bounds

    """

    # use uniform if parameters passed are below 1
    if all([v < 1 for v in [x,y]]):
        return random.uniform(x, y)
    else:
        return random.randint(x,y)