#Cut and paste the code below into this trinket
from turtle import *
from random import *

tina = Turtle()
tina.speed(0)
tina.up()

def  polygon(n, width):
    tina.down()
    for i in range(n):
        tina.forward(width)
        tina.left(360/n)
    tina.up()
    
colors = ["green", "blue", "purple", "grey", "magenta", "yellow", "pink"]
for i in range(30):
    n = randint(3, 10)
    width = randint(5, 30)
    x = randint(-200, 200)
    y = randint(-200, 200)
    tina.goto(x, y)
    tina.color(colors[randint(0,6)])
    polygon(n, width)