import turtle
import random
t = turtle.Turtle()
t.speed(0)
for y in range(50):
size = random.randint(40, 100)
x1 = random.randint(-400, 400)
y1 = random.randint(-300, 300)
r, g, b = random.random(), random.random(), random.random()
t.pencolor(r, g, b)
t.penup()
t.goto(x1, y1)
t.pendown()
for i in range(12):
t.begin_fill()
t.forward(size)
t.backward(size/2)
t.right(30)
t.forward(size/2)
t.backward(size/2)
t.left(60)
t.forward(size/2)
t.backward(size/2)
t.right(30)
t.backward(size/2)
t.right(30)
t.end_fill()