I want to be drawing a circle with beginShape(), starting with a random angle, and to finish a complete circle from that random angle. The problem I’m having is that when I draw from a random starting angle, I don’t know how to set the condition for the code to stop drawing when it finishes the complete circle.

Less than or greater than doesn’t work for me because the angle could start close to TWO_PI and continue past the value, never meeting conditions to exit the for loop.

the end goal here, is to draw from different angles to avoid the pen down bleed marks on a plotter all in a line at a = 0;

```
void draw() {
beginShape();
translate(width/2,height/2);
noFill();
for (float a = random(0,TWO_PI); a < TWO_PI; a += 0.02) {
float r = 100;
float x = r * cos(a);
float y = r * sin(a);
vertex(x,y);
}
endShape();
}
```