While trying to come up with the equation for a random closed curve I came up with the parametric equation for a square. I am sure I am not the first to do it and there are other ways too. On various websites I noticed some people were interested in how to do this. The equation is a very simple sine and cosine base function: x=abs(cos(t))cos(t)+abs(sin(t))sint and y= abs(sin(t))sin(t)-abs(cos(t))cos(t) where t is the angle.