How to generate points/ellipse within a circle area

Hello! I’m trying to generate ellipses within an ellipse, or a circular area.
for example:

for (let i=0; i< 100; i++){
ellipse (random(width), random(height), 10)
}
noLoop();

Is there a way to generate these random circles within an ellipse instead of the canvas? I’ve looked at drawing circles along a circle, but I want it to be within it too. I’ve also looked at circle packing, but I don’t think it needs to be that complicated, I just need to generate points within a circle

Let me know, thank you!

1 Like