import random


def randomGenerator(x_max,y_max,x_min=0,y_min=0):
    """
    Generate random positions in pixels

    Parameters
    ----------
    x_max : integer
            border of x coordinate in pixels

    y_max : integer
            border of y coordinate in pixels

    x_min : integer, default=0
            lower_border of x cordinates in pixels

    y_min : integer, default=0
            lower_border of y cordinates in pixels

    Returns
    -------
    (x,y) : Tuple
            randomly generated x and y values in pixels
    """
    return (random.randint(x_min,x_max-1),random.randint(y_min,y_max-1))