#http://www.mathcurve.com/courbes2d/hypocycloid/hypocycloid.shtml
vertices = 10000
t = from 0 to (20*PI)
r = 10

m = rand_int2(2, 20)
n = rand_int2(1, 6)
q = m / n

x = r/q*((q - 1)*cos(t) + cos(q*t - t))
y = r/q*((q - 1)*sin(t) - sin(q*t - t))