I'm trying to work out how to write an algorithm to randomly place circles of $R$ radius, in a $2D$ rectangle of arbitrary dimensions, such that each placed circle is at least $D$ distance away from other circles in the rectangle.
Can anyone help me how to deduce such an algorithm, or perhaps point to some research that may cover this?
Thanks in advance!