import random


def random_point_of_triangle(vertices):
    """Compute a random point of the triangle with given vertices"""
    p, q, r = vertices
    pq = q-p
    pr = r-p
    while True:
        x = random.random()
        y = random.random()
        if x + y <= 1:
            return p + pq*x + pr*y