import random


def points_in_cube(pt1: tuple, pt2:tuple, pt3:tuple)->tuple:

    """
    points_in_cube(pt1, pt2, pt3)

    This function computes random locations in cartesian coordinates between
    the x,y,z ranges defined by pt1, pt2 and pt3, respectively

    Parameters
    ----------
    pt1: tuple
        (xmin, xmax)
    pt2: tuple
        (ymin, ymax)
    pt3: tuple
        (zmin, zmax)

    Returns
    -------
    Tuple (x_random, y_random, z_random) between min max values
    """
    return (random.randrange(pt1[0], pt1[1]+1, 1),random.randrange(pt2[0], pt2[1]+1, 1), random.randrange(pt3[0], pt3[1]+1, 1))