In the post below there is an example how to fill a volume with randomly distributed spheres without overlaps: