Avoiding overlap

I am trying to construct 1000 sphere volumes distributed randomly in a certain circle radius, however when i try to reduce the radius, an overlap between volumes is occurred.
The spheres positions are determined by generating a random number in order to be located in the defined circle, so my question is: Is there any way to test if the new generated sphere is overlapping with its sisters thus a new number will be regenerated till no overlap is obtained ?

Thanks in advance,
Best regards,


Please see the following topic:

Nanoparticle distribution

It contains an example of how to generate a set of small spheres randomly distributed inside a cylinder.

Hello evc,

Thank you very much, this helped me