Given a canvas with a bunch of circles with a certain radius, say 50, how do I place another circle with radius 10 in a random location so that it does not collide or overlap with any existing circles?
I know I can place the circle and then check if there are any collisions and retry, however I will need to place a lot of circles and this could get stuck. Was wondering if there are any better ways to solves this.