# Source - https://stackoverflow.com/q
# Posted by Omni Master, modified by community. See post 'Timeline' for change history
# Retrieved 2025-11-08, License - CC BY-SA 4.0
import matplotlib.pyplot as plt
import numpy
import math
import random
t=0
pontos = [[0, 0],[5,math.sqrt(75)],[10, 0]]
plt.plot([0, 5, 10], [ 0, math.sqrt(75), 0], "ro")
x = random.randint(0, 100)
y = random.randint(0, 100)
while t < 100:
rv=random.choice(pontos)
rvx=rv[0]
rvy=rv[1]
medx=(rvx+x)/2
medy=(rvy+y)/2
plt.plot([medx], [medy], "ro")
t = t+1
plt.show()