from typing import Tuple
import random


def boxed_coord(width: int, height: int, buffer: int) -> Tuple[int, int]:
    """Selects a pair of coordinates a given distance away from image edges.
    """
    x = random.randint(buffer, height - buffer - 1)
    y = random.randint(buffer, width - buffer - 1)
    return x, y